Only let players with certain skin enter a vehicle
#1

I only want players with 500 score and id 121 to be able to get into a hydra, I got this code but it only works when the player is wearing the skin, when I'm wearing any other skin then I can enter it even with 1 score! It's weird how do I fix?

My current Code:
Код:
if(GetVehicleModel(vehicleid) == 520 && GetPlayerScore(playerid) < 500 && GetPlayerSkin(playerid) == 121)

    {
	    SendClientMessage(playerid, COLOR_RED, "Rank Major & Special Ops Team Required!(500 Score)  /rank to view yours");
        RemovePlayerFromVehicle(playerid);


    }
Reply
#2

pawn Код:
if(GetVehicleModel(vehicleid) == 520)
{
    if(GetPlayerScore(playerid) < 500 && GetPlayerSkin(playerid) != 121)
    {
        SendClientMessage(playerid, COLOR_RED, "Rank Major & Special Ops Team Required!(500 Score)  /rank to view yours");
        RemovePlayerFromVehicle(playerid);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)