The same question -.-
#8

add this above OnGameModeInit
Код:
new vehid;
new GroveCars[25];//change this to the number of grove cars
in OnGameModeInit you do:
Код:
GroveCars[0]==AddStaticVehicleEx(,,,,,,)//do this for all grovecars(with params ofcourse)and change number constantly one up
in OnPlayerEnterVehicle you add:
Код:
vehid = vehicleid;
in OnPlayerStateChange you add:
Код:
if(newstate==PLAYER_STATE_DRIVER)
{
    for(new groveveh;groveveh<MAX_VEHICLES;groveveh++)
    {
    if("check if the player is grove"&&vehid==groveveh)
         {
         SendClientMessage(playerid,color,"you can drive this car!");
         }
    else
         {
         SendClientMessage(playerid,color,"you are not a grove member");
         }
    }
}
NOTE: didnt test this if it fails Send me a PM i will send you a tested piece of code havent got time now
Reply


Messages In This Thread
The same question -.- - by fmmalves - 13.07.2010, 13:23
Re: The same question -.- - by oliverrud - 13.07.2010, 13:24
Re: The same question -.- - by fmmalves - 13.07.2010, 13:26
Re: The same question -.- - by oliverrud - 13.07.2010, 13:28
Re: The same question -.- - by fmmalves - 13.07.2010, 13:42
Re: The same question -.- - by fmmalves - 13.07.2010, 13:43
Re: The same question -.- - by oliverrud - 13.07.2010, 13:49
Re: The same question -.- - by legodude - 13.07.2010, 14:21
Re: The same question -.- - by [DK]JaloNik - 13.07.2010, 14:33
Re: The same question -.- - by fmmalves - 13.07.2010, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)