jlalt

TMPARKING

Aug 24th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.08 KB | None | 0 0
  1. CMD:tmparking(playerid,params[]) {
  2.     #pragma unused params
  3.     if(PlayerInfo[playerid][TMLevel] >= 1) {
  4.     if(PlayerInfo[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] = 6;
  7.     format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
  8.     if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
  9.     Tx[playerid] =X postion;
  10.     Ty[playerid] =Y postion;
  11.     Tz[playerid] =Z postion; // like Tz[playerid] =12.5; ...
  12.     Ti[playerid] = 0;
  13.     new string[128];
  14.     new dsname[MAX_PLAYER_NAME];
  15.     format(telestring,43,"TM Parking!");
  16.     GetPlayerName(playerid, dsname, sizeof(dsname));
  17.     format(string, sizeof(string), "[INFO]:%s has Teleported To TM Members Parking Area /TMParking", dsname);
  18.     SendClientMessageToAll(orange, string);
  19.     SetTimerEx("setstunt",3000,0,"i", playerid);
  20.     } else return SendClientMessage(playerid,red,"ERROR: You need to be TM Member to use this command");
  21.     return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment