Advertisement
jlalt

wew

Apr 13th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.46 KB | None | 0 0
  1. CMD:tmtraining(playerid,params[]) {
  2.     #pragma unused params
  3.     if(PlayerInfo[playerid][TM] >= 1) {
  4.         if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
  5.         if(GetPlayerVirtualWorld(playerid) == 3)
  6.         {
  7.             SetPlayerVirtualWorld(playerid, 0);
  8.             SendClientMessage(playerid, blue,"You've successfully left tm training area!");
  9.             SpawnPlayer(playerid);
  10.         }
  11.         else
  12.         {
  13.             TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
  14.             tseconds[playerid] = 1;
  15.             format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
  16.             if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
  17.             ResetPlayerWeapons(playerid);
  18.             PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  19.             Tx[playerid] =1338.9685;
  20.             Ty[playerid] =2147.5483;
  21.             Tz[playerid] =11.0156;
  22.             Ti[playerid] = 0;
  23.             new string[128];
  24.             new dsname[MAX_PLAYER_NAME];
  25.             format(telestring[playerid],43,"The Mafia Training Stadium!");
  26.             GetPlayerName(playerid, dsname, sizeof(dsname));
  27.             format(string, sizeof(string), "[TELE]:%s has Teleported To The Mafia Training Stadium!", dsname);
  28.             SendClientMessageToAll(blue, string);
  29.             SetTimerEx("setstunt",3000,0,"i", playerid);
  30.             SetTimerEx("SetVirtualWorldTM", 1500, 0, "i", playerid);
  31.         }
  32.     }
  33.     else return SendClientMessage(playerid,red,"ERROR: You need to be The Mafia member to use this command");
  34.     return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement