How can i explain this function?
#3

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
    {
        //If they got into a car from being on foot.
        if( GetVehicleModel(GetPlayerVehicleID( playerid )) == 428 )
        {
            if( GetPlayerSkin(playerid) != 27 ) ||  GetPlayerSkin(playerid) != /*skin id here*/ ||  GetPlayerSkin(playerid) != /* second skin id here*/ ||  GetPlayerSkin(playerid) != /* third skin id here*/ ||  GetPlayerSkin(playerid) != /*and so on...............*/   )
            {
                //If their skin is not 27
                //Remove them and send message.
                RemovePlayerFromVehicle( playerid );
                SendClientMessage( playerid,0xFF000000, "Noredami vairuoti si transporta turite buti elektriku" ); //-1
                return 1;
            }
            else
            {
                SendClientMessage(playerid, 0xFF000000, "Atsisedote i transporta. Jeigu dirbate, tada dirbkite savo darba");
                return 1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
How can i explain this function? - by Artie_Scorpion - 02.01.2012, 16:06
Re: How can i explain this function? - by Artie_Scorpion - 02.01.2012, 16:37
Re: How can i explain this function? - by Danyal - 02.01.2012, 16:39
Re: How can i explain this function? - by Artie_Scorpion - 02.01.2012, 16:48
Re: How can i explain this function? - by KingHual - 02.01.2012, 16:49
Re: How can i explain this function? - by pmk1 - 02.01.2012, 16:59
Re: How can i explain this function? - by KingHual - 02.01.2012, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)