Advertisement
jlalt

ee

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