Help me about script private vehicle
#2

Try this
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
        if(vehicleid == valo)
        {
            if(strcmp(PlayerName(playerid)," Valo_Xhan", true) != 0)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_GREEN, "This is Valo vehicle!")
            }
        }
    }
    return 1;
}

stock PlayerName(playerid)
{
    new PlrName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlrName,sizeof(PlrName));
    return PlrName;
}
stock's / funcrion's is not supposed to be in other Callbacks
Reply


Messages In This Thread
Help me about script private vehicle - by Aizen - 17.06.2011, 23:43
Re: Help me about script private vehicle - by Laronic - 17.06.2011, 23:55
Re: Help me about script private vehicle - by Aizen - 18.06.2011, 00:10
Re: Help me about script private vehicle - by Laronic - 18.06.2011, 00:24
Re: Help me about script private vehicle - by Aizen - 18.06.2011, 01:44
Re: Help me about script private vehicle - by Deskoft - 18.06.2011, 02:03
Re: Help me about script private vehicle - by Aizen - 18.06.2011, 02:20
Re: Help me about script private vehicle - by Lorenc_ - 18.06.2011, 02:22
Re: Help me about script private vehicle - by Aizen - 18.06.2011, 02:54

Forum Jump:


Users browsing this thread: 3 Guest(s)