29.01.2014, 23:18
Hello guy's, I have been searched all the wiki of samp.
but i dont have any idea.
can you help me to make this code only for V.I.P (Luxadmin) Make it to the command that only V.I.P can access i mean.
but i dont have any idea.
can you help me to make this code only for V.I.P (Luxadmin) Make it to the command that only V.I.P can access i mean.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_FIRE) { if (IsPlayerInAnyVehicle(playerid)){ { new Float:vx,Float:vy,Float:vz; GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz); SetVehicleVelocity(GetPlayerVehicleID(playerid), vx*1.5, vy*1.5, vz*1.5); } } } if(newkeys == KEY_SUBMISSION){ if(IsPlayerInAnyVehicle(playerid)) { { SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0); RepairVehicle(GetPlayerVehicleID(playerid)); } } } if(newkeys & KEY_CROUCH) { if (IsPlayerInAnyVehicle(playerid)){ { new Float:x, Float:y, Float:z; GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z); SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z+0.3); } } } if(newkeys & KEY_HANDBRAKE) { if (IsPlayerInAnyVehicle(playerid)){ { new Float:vx,Float:vy,Float:vz; GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz); SetVehicleVelocity(GetPlayerVehicleID(playerid), vx*0, vy*0, vz*0); } } } return 1; }