26.07.2011, 11:25
Quote:
Don't Matter what Admin system you use
Use this pawn Код:
|

Did you even try compiling it? Because I know it won't. Using MAX_PLAYERS to assign a single vehicleid? What the hell?
pawn Код:
new gVipCars[5];
//GameModeInit
gVipCars[0] = AddStaticVehicle(...);
gVipCars[1] = AddStaticVehicle(...);
gVipCars[2] = AddStaticVehicle(...);
gVipCars[3] = AddStaticVehicle(...);
gVipCars[4] = AddStaticVehicle(...);
//PlayerStateChange
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(/* put your variable to check for vip here */ == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
for(new i; i < sizeof(gVipCars); i++)
{
if(vehicleid == gVipCars[i])
{
SendClientMessage(playerid, COLOR_RED, "Not Vip");
RemovePlayerFromVehicle(playerid);
break;
}
}
}
}
return 1;
}