Make vehicles only for admins Help?
#3

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Example:

pawn Код:
AdminVehicles[4]; //This is a global variable

AdminVehicles[0] = AddStaticVehicle(522,217.8630,1854.9401,12.4834,0.6474,151,0); // nrg area51
AdminVehicles[1] = AddStaticVehicle(470,213.7728,1854.6956,12.9258,1.8452,43,0); // patriot area51
AdminVehicles[2] = AddStaticVehicle(447,225.8707,1887.0684,17.6522,1.7829,75,2); // seasparrow area51
AdminVehicles[3] = AddStaticVehicle(495,221.9560,1854.6931,13.2558,359.1743,151,0); // sandking area51

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    for(new i = 0; i < 4; i++)
    {
        if(vehicleid == AdminVehicles[i])
        {
            //If the vehicle is an admin vehicle, do something here to check if the player is admin
        }
    }
    return 1;
}
I suggest searching first
I already searched but don't found anything.

But i don't understand you. Now iv'e got errors.

Код:
error 017: undefined symbol "AdminVehicles"
What's wrong?
Reply


Messages In This Thread
Make vehicles only for admins Help? - by necrobg3 - 18.08.2012, 22:32
Re: Make vehicles only for admins Help? - by Kindred - 18.08.2012, 22:43
Re: Make vehicles only for admins Help? - by necrobg3 - 18.08.2012, 23:25
Re: Make vehicles only for admins Help? - by Jstylezzz - 18.08.2012, 23:25
Re: Make vehicles only for admins Help? - by necrobg3 - 18.08.2012, 23:33
Re: Make vehicles only for admins Help? - by Admigo - 18.08.2012, 23:40
Re: Make vehicles only for admins Help? - by necrobg3 - 18.08.2012, 23:42
Re: Make vehicles only for admins Help? - by JaKe Elite - 18.08.2012, 23:44
Re: Make vehicles only for admins Help? - by necrobg3 - 18.08.2012, 23:48
Re: Make vehicles only for admins Help? - by necrobg3 - 19.08.2012, 00:32

Forum Jump:


Users browsing this thread: 2 Guest(s)