12.06.2010, 00:44
i want this like
not if there in a checkpoint i want it to be in a specific checkpoint
Код:
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; }