Error help me !!!
#2

try it this one:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicles[MAX_PLAYERS][playerid] =
{
520, // hydra
593, // dodo
376, // rustler
432
}; // rhino
    if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
    {
    //If they got into a car from being on foot.
        if( GetVehicleModel(GetPlayerVehicleID( playerid )) == vehicles)  //naudoti || masina ||
        {
            if( GetPlayerSkin(playerid) != 27) //naudoti || skinas ||

            {
                //If their skin is not 27
                //Remove them and send message.
                RemovePlayerFromVehicle( playerid );
                SendClientMessage( playerid,0xFF000000, "Noredami vairuoti si transporta turite buti elektriku" );//-1
            }else{
                SendClientMessage(playerid, 0xFF000000, "Atsisedote i transporta. Jeigu dirbate, tada dirbkite savo darba");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Error help me !!! - by Artie_Scorpion - 03.01.2012, 12:35
Re: Error help me !!! - by Kaperstone - 03.01.2012, 12:40
Re: Error help me !!! - by Artie_Scorpion - 03.01.2012, 14:04
Re: Error help me !!! - by FTLOG - 03.01.2012, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)