Fast array question
#5

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(PlayerInfo[playerid][pJob] != 1)
    {
        for(new i=0; i<sizeof(mechanicvehicles); i++)
        {
            if(vehicleid == mechanicvehicles[i])
            {
                SetPlayerPos(playerid, x, y, z);
                SendClientMessage(playerid, COLOR_NORMALRED, "( ! ) Only Mechanics can use This Vehicle");
                break;
            }
        }  
    }
    return 1;
}
Reply


Messages In This Thread
Fast array question - by sim_sima - 17.05.2011, 17:29
Re: Fast array question - by sim_sima - 17.05.2011, 17:33
Re: Fast array question - by Wesley221 - 17.05.2011, 17:40
Re: Fast array question - by sim_sima - 17.05.2011, 17:42
Re: Fast array question - by Dreftas - 17.05.2011, 17:43
Re: Fast array question - by Vince - 17.05.2011, 17:46
Re: Fast array question - by sim_sima - 17.05.2011, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)