Jump to content

Problemă


Diam0nd

Recommended Posts

Scuzați-mă dacă am greșit unde am postat dar n-am găsit nicăieri.

Am următorul cod:

 



{
{
if (cID[ playerid ] == 0 )
{
   GivePlayerMoney(playerid,5000);
DisablePlayerCheckpoint(playerid);  
SendClientMessage(playerid,COLOR_GREEN,"Ai ajuns la destinatie");
SendClientMessage(playerid,COLOR_GREEN," Du-te la urmatorul checkpoint pentru a primi inca $5.000 ");


}
     }
   if(IsPlayerInRangeOfPoint(playerid,3.0,2038.0974,1343.8402,10.6719))
   {
  CP[playerid] = 1;
  SetPlayerCheckpoint(playerid,1999.8719,1344.0342,10.9543,3.0);
  }
  else if(CP[playerid]==1)
  {
  new pName[24];
  new str[128];
  GetPlayerName(playerid, pName, 24);
  format(str, 128,"Felicitari %s! tocmai ai terminat traseul si ai primit supa de 5.000$", pName);
  SendClientMessage(playerid, COLOR_GREEN, str);
  GivePlayerMoney(playerid,5000);
}






return 1;
}


 

 

Problema este că îmi arată primul mesaj la ambele checkpointuri, eu vreau doar la primul. Știe cineva cum sa rezolv ?
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.