Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PushTeleportInput(playerid, teleport_category, input)
- {
- if(teleport_category < 0 || teleport_category > MAX_TELE_CATEGORIES)
- return 0;
- if(input < 0 || input > MAX_TELES_PER_CATEGORY)
- {
- Log(LOG_FAIL, "Invalid teleport index, PushTeleportInput(%i, %i, %i)", playerid, teleport_category, input);
- return 0;
- }
- new string[32];
- string[0] = '/';
- strcat(string, g_Teleports[teleport_category][input], sizeof(string));
- Command_ReProcess(playerid, string, false);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement