Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:tmtraining(playerid,params[]) {
- #pragma unused params
- if(AccInfo[playerid][TM] >= 1) {
- if(AccInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
- TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
- tseconds[playerid] = 0;
- format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
- if(AccInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
- ResetPlayerWeapons(playerid);
- PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
- Tx[playerid] =1338.9685;
- Ty[playerid] =2147.5483;
- Tz[playerid] =11.0156;
- Ti[playerid] = 0;
- new string[128];
- new dsname[MAX_PLAYER_NAME];
- format(telestring[playerid],43,"The Mafia Training Stadium!");
- GetPlayerName(playerid, dsname, sizeof(dsname));
- format(string, sizeof(string), "[TELE]:%s has Teleported To The Mafia Training Stadium!", dsname);
- SendClientMessageToAll(blue, string);
- SetTimerEx("setstunt",3000,0,"i", playerid);
- SetTimerEx("SetVirtualWorldTM", 1500, 0, "i", playerid);
- } else return SendClientMessage(playerid,red,"ERROR: You need to be The Mafia member to use this command");
- return 1;
- }
- forward public SetVirtualWorldTM(playerid);
- public SetVirtualWorldTM(playerid)
- {
- SetPlayerVirtualWorld(playerid, 3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement