Class Problem.
#3

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
new bool:Solider[MAX_PLAYERS] = false;

^ what i would use

Anyway...Are their Solider and Eng set correctly, also;
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        new EngCheck = GetVehicleModel(GetPlayerVehicleID(playerid));
        if(EngCheck == 432)
        {
            if(Solider[playerid] == 0 || Eng[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_RED, " You Need Solider/Engineer To Drive Tanks");  
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
but if I'm (Solider or Engineer) that Message show again.
Reply


Messages In This Thread
Class Problem. - by V_LOPE - 23.12.2011, 03:19
Re: Class Problem. - by [ABK]Antonio - 23.12.2011, 03:40
Re: Class Problem. - by V_LOPE - 23.12.2011, 03:51
Re: Class Problem. - by [ABK]Antonio - 23.12.2011, 03:52

Forum Jump:


Users browsing this thread: 1 Guest(s)