robbank cp prob
#1

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


Messages In This Thread
robbank cp prob - by Kar - 12.06.2010, 00:44
Re: robbank cp prob - by (SF)Noobanatior - 12.06.2010, 01:38
Re: robbank cp prob - by Kar - 12.06.2010, 01:41
Re: robbank cp prob - by (SF)Noobanatior - 12.06.2010, 01:42
Re: robbank cp prob - by Kar - 12.06.2010, 01:46
Re: robbank cp prob - by TheInnocentOne - 12.06.2010, 02:58
Re: robbank cp prob - by Kar - 12.06.2010, 03:13
Re: robbank cp prob - by TheInnocentOne - 12.06.2010, 03:16
Re: robbank cp prob - by Kar - 12.06.2010, 03:17
Re: robbank cp prob - by TheInnocentOne - 12.06.2010, 03:18

Forum Jump:


Users browsing this thread: 3 Guest(s)