Ajuda Comando[Sуcio]
#2

Pequena base:

pawn Код:
new bool: OrgTemp[MAX_PLAYERS];

CMD:entrarorg(playerid, params[]) {

    if ( PlayerInfo[playerid][pSocio] == 0 )
        return false;

    if ( isnull(params) )
        return SendClientMessage(playerid, -1, "/entrarorg [id]");
       
    new id_ = strval(params);
   
    if ( id_ > MAX_ORGS || id_ < 1 )
        return SendClientMessage(playerid, -1, "Id invбlido!");
       
    PlayerInfo[playerid][pMember] = id_;
    OrgTemp[playerid] = true;

    return 1;
}


public OnPlayerDeath(playerid, killerid, reason) {

    if ( OrgTemp[playerid] == true) {
   
        OrgTemp[playerid] = false;
        PlayerInfo[playerid][pMember] = 0;
    }

    return 1;
}

public OnPlayerDisconnect(playerid, reason) {

    if ( OrgTemp[playerid] == true) {
   
        OrgTemp[playerid] = false;
        PlayerInfo[playerid][pMember] = 0;
    }
   
    return 1;
}
Reply


Messages In This Thread
Ajuda Comando[Sуcio] - by lolkil - 09.12.2013, 21:39
Re: Ajuda Comando[Sуcio] - by Gii - 09.12.2013, 22:02
Respuesta: Ajuda Comando[Sуcio] - by lolkil - 10.12.2013, 17:13
Re: Ajuda Comando[Sуcio] - by DannielCooper - 10.12.2013, 17:20
Re: Ajuda Comando[Sуcio] - by Input - 10.12.2013, 17:20
Respuesta: Ajuda Comando[Sуcio] - by lolkil - 10.12.2013, 17:32
Re: Ajuda Comando[Sуcio] - by DannielCooper - 10.12.2013, 17:46
Respuesta: Ajuda Comando[Sуcio] - by ViniKuliveguisky - 10.12.2013, 18:25
Respuesta: Ajuda Comando[Sуcio] - by lolkil - 10.12.2013, 18:41
Re: Ajuda Comando[Sуcio] - by Schocc - 10.12.2013, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)