24.12.2011, 10:22
Hello guys
I have made this faction vehicle system, so that whenever your skin is not the valid one, you'll be frozen. But I'd want it to apply animation or simply just deny access.. But whenever i put my code in it simply freezes the person, who does not have the right skin. It even freezes the person if i remove the codes! Unless they have the skin
This is what i tried
I have made this faction vehicle system, so that whenever your skin is not the valid one, you'll be frozen. But I'd want it to apply animation or simply just deny access.. But whenever i put my code in it simply freezes the person, who does not have the right skin. It even freezes the person if i remove the codes! Unless they have the skin
This is what i tried
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(vehicleid == 416) { if(GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 276) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xFFFF00AA," You're not an EMS!"); return 1; } else { SendClientMessage(playerid,0xFFFF00AA," You just entered the ambulance!"); } } return 1; }