23.11.2011, 11:55
pawn Код:
forward VerificarVeiculo(playerid);
public VerificarVeiculo(playerid)
{
for(new c = 0; c <= 112; c++)
{
if(IsPlayerInVehicle(playerid, VBope[c]) && Membro[Bope] < 1)
{
SendClientMessage(playerid, 0x221BE0FF, "Vocк nгo й do Bope");
RemovePlayerFromVehicle(playerid);
return 1;
}
else if(IsPlayerInVehicle(playerid, VComando[c]) && Membro[Cv] < 1)
{
SendClientMessage(playerid, 0xE01B1BFF, "Vocк nгo й do Comando Vermelho");
RemovePlayerFromVehicle(playerid);
return 1;
}
else if(IsPlayerInVehicle(playerid, VAda[c]) && Membro[Ada] < 1)
{
SendClientMessage(playerid, 0xE0D31BFF, "Vocк nгo й dos Amigos Dos Amigos");
RemovePlayerFromVehicle(playerid);
return 1;
}
else if(IsPlayerInVehicle(playerid, VPcc[c]) && Membro[Pcc] < 1)
{
SendClientMessage(playerid, 0x62A859FF, "Vocк nгo й do Primeiro Comando Da Capital");
RemovePlayerFromVehicle(playerid);
return 1;
}
else if(IsPlayerInVehicle(playerid, VTcp[c]) && Membro[Tcp] < 1)
{
SendClientMessage(playerid, 0x1B9EE0FF, "Vocк nгo й do Terceiro Comando Puro");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}