17.12.2016, 09:13
Any Problem with this codes?
Код:
public Robdrag(playerid) { new rand = random(150000)+0; //When your robbing you get 0-150000 cash random GivePlayerMoney(playerid,rand); //it Gives your the random cash SendClientMessage(playerid, COLOR_GREEN, "You Rob the bank and now have 4 wanted level!"); //Gives you 3 wanted stars TogglePlayerControllable(playerid,1); //You can walk again return 1; } CMD:robdrag(playerid, params[]) //Command robbank { if(Robdrag[playerid] == 0 ) //Getting If Your not recently robbed the bank if(IsPlayerInRangeOfPoint(playerid,2.0,1955.4669,1017.7850,992.4688)) //Gets your Pos. { SendClientMessage(playerid, COLOR_GREEN, "You robbing the bank 30 seconds left!"); //Sending a ClientMessage 30 sec left Robdrag[playerid] = 1; // Give's your Recently Robbed SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); //Sets your wanted level to 3 SetTimerEx("Robdrag", 30000, false, "i", playerid); //Timer 1 Ticks when your robbing 30 seconds SetTimerEx("after1", 50000, false, "i", playerid); } else { SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!"); // Sends a SCM Your not on a Checkpoint. } return 1; }