Lock Vehicles by more than one skin
#2

pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(vehicleid >= 1 && vehicleid <= 12)
    {
        new skinid == GetPlayerSkin(forplayerid);
        if(skinid == 287 || skinid == 274 || skinid == 275 || skinid == 276 || skinid == 277 || skinid == 278 || skinid == 279 )
        {
            SetVehicleParamsForPlayer(vehicleid,forplayerid,0,0);
        }
        else
        {
            SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
        }
    }
    return 1;
}
Fixed(?)

Also, you did "GetPlayerSkin(forplayerid) = #" - this means "GetPlayerSkin's value is changed to #", which is logically wrong - doesn't function.

However, "GetPlayerSkin(forplayerid) == #" - this means "if GetPlayerSkin's value is equal to the value of #", which is logically correct - works.
Reply


Messages In This Thread
Lock Vehicles by more than one skin - by [SCRP]Cody - 19.10.2010, 00:28
Re: Lock Vehicles by more than one skin - by CrucixTM - 19.10.2010, 01:19

Forum Jump:


Users browsing this thread: 1 Guest(s)