Problem with my code
#2

Quote:
Originally Posted by ChristofferHoffmann
Посмотреть сообщение
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

Код:
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;
	}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    if(vehicleid == 416)
    {
    if(GetPlayerSkin(playerid) != 274 || GetPlayerSkin(playerid) != 275 || GetPlayerSkin(playerid) != 276)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,0xFF0000AA, "You're not an EMS!");
        TogglePlayerControllable(playerid, 1);
    return 1;
    }
    else return SendClientMessage(playerid,0xFF0000AA," You just entered the ambulance!");
    }
    return 1;
    }
Reply


Messages In This Thread
Problem with my code - by ChristofferHoffmann - 24.12.2011, 10:22
Re: Problem with my code - by Thresholdold - 24.12.2011, 12:24
Re: Problem with my code - by ChristofferHoffmann - 24.12.2011, 12:42
Re: Problem with my code - by -CaRRoT - 24.12.2011, 12:46
Re: Problem with my code - by ChristofferHoffmann - 24.12.2011, 12:51
Re: Problem with my code - by ChristofferHoffmann - 24.12.2011, 23:12
Re: Problem with my code - by spedico - 24.12.2011, 23:22
Re: Problem with my code - by ChristofferHoffmann - 25.12.2011, 00:41
Re: Problem with my code - by spedico - 25.12.2011, 00:44
Re: Problem with my code - by ChristofferHoffmann - 25.12.2011, 01:53

Forum Jump:


Users browsing this thread: 2 Guest(s)