Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:fly(playerid, params[])
- {
- if(gPlayerLoggeduserbar == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "{0xFF0000}Nu esti connectat pentru a folosi aceasta comanda");
- if(IsPlayerConnected(playerid))
- {
- new Float: x,Float: y,Float: z;
- GetPlayerPos(playerid,x,y,z);
- if(PlayerInfouserbar[pAdmin] >= 1)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, x,y+15,z+20);
- }
- else
- {
- SetPlayerPos(playerid, x,y+10,z+10);
- }
- }
- else SCM (playerid, COLOR_RED, Nu esti autorizat sa folosesti aceasta comanda);
- }
- return 1;
- }
- Iar acum sa va explic ce fac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement