22.05.2011, 06:24
pawn Код:
forward No comesso do GM
if(IsAMedicoCar(newcar)){
if(!IsAMedico(playerid))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "Vocк nгo e Mйdico!");
}
no > OnPlayerStateChange
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;
}
nos > OnVehicleMod