09.03.2014, 07:47
how do i make a cars for VIP only [pDonator] ?
i promise i will give +rep if u will help me.
i promise i will give +rep if u will help me.
#define MAX_VIPCARS 10
new VIPCar[MAX_VIPCARS];
public OnGameModeInIt()
{
VIPCar[0] = AddStaticVehicleEx(451, 1.0, 2.0, 3.0, 4.0, 1, 1, 10);
VIPCar[1] = AddStaticVehicleEx(560, 2.0, 3.0, 4.0, 5.0, 1, 1, 10);
// and so on.
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 0; i < MAX_VIPCARS; i++)
{
if(vehicleid == VIPCar[i])
{
if(PlayerInfo[playerid][pDonator] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "You arent VIP");
}
}
}
return 1;
}
Where is x,y,z and where is the vehicle id where i will put it ? and 1 more question is this a filterscript, if not where i will put it in my gm?
|
VIPCar[0] = AddStaticVehicleEx(451, 1.0, 2.0, 3.0, 4.0, 1, 1, 10);
PHP Code:
what is 4.0 and 1, 1,? |