Advertisement
Guest User

Untitled

a guest
Aug 16th, 2014
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.51 KB | None | 0 0
  1. PushTeleportInput(playerid, teleport_category, input)
  2. {
  3.     if(teleport_category < 0 || teleport_category > MAX_TELE_CATEGORIES)
  4.         return 0;
  5.        
  6.     if(input < 0 || input > MAX_TELES_PER_CATEGORY)
  7.     {
  8.         Log(LOG_FAIL, "Invalid teleport index, PushTeleportInput(%i, %i, %i)", playerid, teleport_category, input);
  9.         return 0;
  10.     }
  11.  
  12.     new string[32];
  13.  
  14.     string[0] = '/';
  15.     strcat(string, g_Teleports[teleport_category][input], sizeof(string));
  16.  
  17.         Command_ReProcess(playerid, string, false);
  18.     return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement