Advertisement
AndreiAndre777

Untitled

May 12th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if(strcmp(cmd, "/sbiz", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if(PlayerInfo[playerid][pAdmin] >= 5)
  6. {
  7. tmp = strtok(cmdtext, idx);
  8. if(!strlen(tmp))
  9. {
  10. SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /sbiz [biznumber]");
  11. return 1;
  12. }
  13. new housenum = strval(tmp);
  14. SetPlayerInterior(playerid,SBizzInfo[housenum][sbInterior]);
  15. SetPlayerPos(playerid,SBizzInfo[housenum][sbEntranceX],SBizzInfo[housenum][sbEntranceY],SBizzInfo[housenum][sbEntranceZ]);
  16. //GameTextForPlayer(playerid, "~w~Teleporting", 5000, 1);
  17. }
  18. }
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement