check boat
#5

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
Didn't test it, but here you go.

PHP код:

#define MAX_BOATS 10
new Boats[MAX_BOATS] = {472,473,595,493,430,453,484,446,452,454};
stock IsPlayerInBoat(playerid)
{
    new 
vehicleid GetPlayerVehicleID(playerid);
    if(!
IsPlayerInAnyVehicle(playerid)) return 0;
    
    for(new 
0MAX_BOATSi++)
    {
        if(
GetVehicleModel(vehicleid) == Boats[i])
           return 
true;
    }
    return 
false;

oh whow, thank you! +rep'd
Reply


Messages In This Thread
check boat - by Cubie - 17.09.2017, 12:09
Re: check boat - by Eoussama - 17.09.2017, 12:14
Re: check boat - by Cubie - 17.09.2017, 12:23
Re: check boat - by Eoussama - 17.09.2017, 12:35
Re: check boat - by Cubie - 17.09.2017, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)