Lirbo

Untitled

Feb 8th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. //--------------------------------Admins Commands-----------------------------------------
  3. {
  4. if(strcmp(cmdtext, "/jetpack", true) == 0){
  5. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"You're not allowed to use this command!");
  6. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
  7. return 1;}
  8. //--------------------------------Admins Commands-----------------------------------------
  9.  
  10. //-----------------------------------------Teleports---------------------------------------
  11. if(!strcmp(cmdtext, "/Tele",true)){
  12. new long_string[550];
  13. format(long_string,sizeof(long_string),"/Race - איזור המרוצים\n/Sf - סאן פיארו\n/As - איזור הסטאנטים");
  14. ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,"Teleports",long_string,"Ok","Cancel");
  15. return 1;}
  16.  
  17.  
  18. if(!strcmp(cmdtext,"/Bank",true)){
  19. SetPlayerPos(playerid,-2951.4492,2692.7969,126.0255 );
  20. SetPlayerFacingAngle(playerid, 89.7118);
  21. SendClientMessage(playerid,-1, "{FFFFFF}.{FFFF00}Bank - {ffffff}ברוך הבא לבנק");
  22. GameTextForPlayer(playerid, "~>~ ~y~Bank ~<~", 2500, 3);
  23. return 1;}
Advertisement
Add Comment
Please, Sign In to add comment