Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- new string[100];
- new Float:x, Float:y, Float:z;
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerPos(playerid, x, y, z);
- format(string, sizeof(string), "~g~Admin ~w~%s started a war ~n~ You will be teleported in ~r~10 seconds!. ", name);
- GameTextForAll(string, 5000, 5 );
- SetTimer("Teleport", 10000, false);
- for(new i = 0; i < MAX_PLAYERS; i++)
- SetPlayerPos(i, x, y, z);
- print(string);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment