How to make this only for V.I.P ?
#1

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.
Код:
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;
}
Reply


Messages In This Thread
How to make this only for V.I.P ? - by Symphony - 29.01.2014, 23:18
Re: How to make this only for V.I.P ? - by ross8839 - 29.01.2014, 23:37
Re: How to make this only for V.I.P ? - by Shockey HD - 30.01.2014, 02:28
Re: How to make this only for V.I.P ? - by Symphony - 30.01.2014, 05:34

Forum Jump:


Users browsing this thread: 1 Guest(s)