Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. CMD:fly(playerid, params[])
  2. {
  3. if(gPlayerLoggeduserbar == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "{0xFF0000}Nu esti connectat pentru a folosi aceasta comanda");
  4. if(IsPlayerConnected(playerid))
  5. {
  6. new Float: x,Float: y,Float: z;
  7. GetPlayerPos(playerid,x,y,z);
  8. if(PlayerInfouserbar[pAdmin] >= 1)
  9. {
  10. if (GetPlayerState(playerid) == 2)
  11. {
  12. new tmpcar = GetPlayerVehicleID(playerid);
  13. SetVehiclePos(tmpcar, x,y+15,z+20);
  14. }
  15. else
  16. {
  17. SetPlayerPos(playerid, x,y+10,z+10);
  18. }
  19. }
  20. else SCM (playerid, COLOR_RED, Nu esti autorizat sa folosesti aceasta comanda);
  21. }
  22. return 1;
  23. }
  24. Iar acum sa va explic ce fac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement