12.06.2010, 06:05
how do i make a /robbank command for 1 checkpoint only
this is my current robbank
and i wanna make it like for this cp only it says something diff and for other cps
this is my current robbank
Код:
if(strcmp(cmdtext, "/robbank", true) == 0) // If they type /robbank
{
if(IsPlayerInCheckpoint(playerid)) // Check if they are in a checkpoint <====tag mismatch it's corrected
{
new string[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
new cash = random(60000); // random number between 1 & 60000 is the money they will get
GivePlayerMoney(playerid, cash); // Give the player the money!
format(string,sizeof(string),"%s has just stolen %d from the bank!",playername,cash);
SendClientMessageToAll(TEAL,string);
}
return 1;
}

