19.12.2016, 20:30
Hi everyone, when I'm waiting 30 secdons for robbing the Casino There are nothing happened... I don't know Why canyou help me? To Fix it? Please ...
CODES
This my codes
CODES
Код:
CMD:robdrag(playerid, params[]) //Command robbank { if (robdrag[playerid] == 0 ) //Getting If Your not recently robbed the bank if(IsPlayerInRangeOfPoint(playerid,2.0,1955.3673,1018.1609,992.4688)) //Gets your Pos. { SendClientMessage(playerid, COLOR_GREEN, "You robbing the Casino 30 seconds left!"); //Sending a ClientMessage 30 sec left GameTextForPlayer(playerid, "Do not Left Checkpoint\nWait The Timer To Completed\n30Secodns", 10000, 4); 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; } forward Robdrag(playerid); //Forwards your public public Robdrag(playerid) { new rand = random(150000)+0; //When your robbing you get 0-130000 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; }