03.04.2011, 14:09
before i was in a rush, try this
sorry about the indention, forum has weird problems :S
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(playerid);
if(vid == Team1Car && PlayerBase[playerid][pMedlem] != 0 || PlayerBase[playerid][pLedare] != 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF0000FF,"ERROR: This vehicle belongs to the first team!");
}
}