bankrob
#1

how do i make a /robbank command for 1 checkpoint only

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;
}
and i wanna make it like for this cp only it says something diff and for other cps
Reply


Messages In This Thread
bankrob - by Kar - 12.06.2010, 06:05
Re: bankrob - by TTJJ - 12.06.2010, 06:14
Re: bankrob - by cessil - 12.06.2010, 06:18
Re: bankrob - by Kar - 12.06.2010, 06:54
Re: bankrob - by (SF)Noobanatior - 12.06.2010, 06:56
Re: bankrob - by Kar - 12.06.2010, 07:09
Re: bankrob - by DJDhan - 12.06.2010, 07:55

Forum Jump:


Users browsing this thread: 1 Guest(s)