Team vehicles
#12

before i was in a rush, try this
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!");
}
}
sorry about the indention, forum has weird problems :S
Reply


Messages In This Thread
Team vehicles - by cruising - 02.04.2011, 13:55
Re: Team vehicles - by CyNiC - 02.04.2011, 14:00
Re: Team vehicles - by tanush - 02.04.2011, 14:15
Re: Team vehicles - by cruising - 02.04.2011, 14:26
Re: Team vehicles - by cruising - 02.04.2011, 14:33
Re: Team vehicles - by LiamM - 02.04.2011, 14:39
Re: Team vehicles - by cruising - 02.04.2011, 15:20
AW: Team vehicles - by Nero_3D - 02.04.2011, 15:37
Re: AW: Team vehicles - by cruising - 02.04.2011, 16:01
AW: Re: AW: Team vehicles - by Nero_3D - 02.04.2011, 16:11
Re: Team vehicles - by cruising - 02.04.2011, 16:33
Re: Team vehicles - by tanush - 03.04.2011, 14:09

Forum Jump:


Users browsing this thread: 2 Guest(s)