Advertisement
AndreiAndre777

Untitled

May 12th, 2015
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. if(strcmp(cmd, "/movesbiz", 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, "Scrie: /movesbiz [sbiz id] ");
  11. return 1;
  12. }
  13. new proplev = strval(tmp);
  14. if(proplev > sizeof(SBizzInfo) || proplev < 0)
  15. {
  16. return 1;
  17. }
  18. else
  19. {
  20. GetPlayerPos(playerid,X,Y,Z);
  21. format(string,sizeof(string),"{0066FF}AdmCmd: {a9c4e4}** Afacerea S %d a fost mutata in pozitia %f - %f - %f",proplev,X,Y,Z);
  22. ABroadCast(COLOR_WHITE,string,1);
  23. SBizzInfo[proplev][sbEntranceX] = X;
  24. SBizzInfo[proplev][sbEntranceY] = Y;
  25. SBizzInfo[proplev][sbEntranceZ] = Z;
  26. OnPropUpdate();
  27. return 1;
  28. }
  29. }
  30. }
  31. return 1;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement