Guest User

Untitled

a guest
Aug 12th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  2. {
  3. new string[100];
  4. new Float:x, Float:y, Float:z;
  5. new name[MAX_PLAYER_NAME];
  6. GetPlayerName(playerid, name, sizeof(name));
  7. GetPlayerPos(playerid, x, y, z);
  8. format(string, sizeof(string), "~g~Admin ~w~%s started a war ~n~ You will be teleported in ~r~10 seconds!. ", name);
  9. GameTextForAll(string, 5000, 5 );
  10.  
  11. SetTimer("Teleport", 10000, false);
  12. for(new i = 0; i < MAX_PLAYERS; i++)
  13. SetPlayerPos(i, x, y, z);
  14. print(string);
  15. return 1;
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment