Jump to content
  • 0

Checkpont


aLiNNN.

Question

Salut. Am si eu o problema. Am realizat o comanda cu 2 checkpointuri( un traseu pentru a transporta marfa). Dar cand ajung in primul checkpoint, se executa automat comanda /dropcar chiar daca nu am jobul.( mi se vinde masina si apare ca pot reveni peste 20 minute )

//=MUNCESTE1==================================================================================//
if(strcmp(cmd, "/transport1", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
CP[playerid] =1;
SetPlayerCheckpoint(playerid, -55.2474,-223.5161,5.4297, 4.0);
SendClientMessage(playerid,COLOR_WHITE,"Transporta marfa la checkpoint.");
return 1;
}
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(1.0,playerid, -55.2474,-223.5161,5.4297))
{
CP[playerid] =1;
SetPlayerCheckpoint(playerid, -55.2474,-223.5161,5.4297, 4.0);
SendClientMessage(playerid,COLOR_WHITE,"Transporta marfa la checkpoint.");
return 1;
}
}
}
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.