[DUV] Reservando carros pra Gang
#2

topo do gm
pawn Код:
forward IsAOrgnome(playerid);
forward IsAOrgnomeCar(carid);
em public OnPlayerStateChange(playerid, newstate, oldstate)

pawn Код:
if(IsAOrgnomeCar(newcar))
        {
            if(IsAOrgnome(playerid)) { }
            else {
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
            SendClientMessage(playerid, COLOR_GRAD1, "[BGL]: Vocк nгo й da org org nome!"); }
        }
final do gm
pawn Код:
public IsAOrgnomeCarr(carid)
{
    if((carid >= Comeзo dos carros da org aqui) && (carid <= fim dos carros da org aqui))
    {
        return 1;
    }
    return 0;
}
//================================='
public IsAOrgnome(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new Lider = PlayerInfo[playerid][pLider];
        new member = PlayerInfo[playerid][pMembro];
        if(member==Numero da org aki || member==Numero da org aki)
        {
            return 1;
        }
        else if(Lider==Numero da org aki || Lider==Numero da org aki)
        {
            return 1;
        }
    }
    return 0;
}
esse й o sistema que eu uso no meu gm
Reply


Messages In This Thread
[DUV] Reservando carros pra Gang - by Mr_Taxi - 20.11.2010, 20:37
Re: [DUV] Reservando carros pra Gang - by jonas_gabriel - 20.11.2010, 20:44
Re: [DUV] Reservando carros pra Gang - by Mr_Taxi - 20.11.2010, 21:09
Re: [DUV] Reservando carros pra Gang - by jonas_gabriel - 20.11.2010, 21:11
Re: [DUV] Reservando carros pra Gang - by Mr_Taxi - 20.11.2010, 22:08
Re: [DUV] Reservando carros pra Gang - by egonzks - 20.11.2010, 22:22
Re: [DUV] Reservando carros pra Gang - by Mr_Taxi - 20.11.2010, 22:42

Forum Jump:


Users browsing this thread: 3 Guest(s)