Niko_Hs

[SCRIPT] Comando Tele

Dec 20th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.85 KB | None | 0 0
  1. /* Script Aiuti Pawn - Iksserver.forumfree.it */
  2.  
  3. #include <a_samp>
  4.  
  5. new nome[MAX_PLAYER_NAME], stringa[500]; //Questi mettili in alto, così eviti di ripeterli sempre nei cmd.
  6.  
  7. public OnPlayerCommandText(playerid, cmdtext[])
  8. {
  9.  
  10. if(strcmp(cmd,"/tsudrift", true)== 0)
  11. {
  12.  
  13. GameTextForPlayer(playerid, "Benvenuto nella Big Ear di TSUNAMI",5000,5);
  14.  
  15. SetPlayerPos(playerid, -395.50515747,1532.43481445,75.30249786); //teletrasporta nelle coordinate.
  16.  
  17. SetPlayerInterior(playerid, 0); //Sempre per sicurezza, in caso fossi dentro un Interior. Questo non va messo solo quando si vuole andare in un interior.
  18.  
  19. GetPlayerName(playerid, nome, sizeof(nome));
  20.  
  21. format(stringa, sizeof(stringa), "%s si è teleporato nella Big Ear di TSUNAMI (/tsudrift)", nome);
  22.  
  23. SendClientMessageToAll(COLORE_ROSSO, stringa);
  24.  
  25. return 1;} //Per il cmd
  26.  
  27. return 1;} //Per il callback
Advertisement
Add Comment
Please, Sign In to add comment