22.05.2011, 05:55
1є Poste a public que o else if(IsAMedicoCar(newcar)) estб.
2є Faзa isso \/ e teste.
2є Faзa isso \/ e teste.
pawn Код:
if(IsAMedicoCar(newcar)){
if(!IsAMedico(playerid))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "Vocк nгo e Mйdico!");
}
public IsAMedico(playerid)
{
if(IsPlayerConnected(playerid))
{
new lider = (PlayerInfo[playerid][pLeader]);
new member = (PlayerInfo[playerid][pMember]);
if(member == 4 || lider == 4)
{
return 1;
}else{
return 0;
}
}
return 0;
}