[Ajuda] Abrir portгo
#9

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
ja tento assim
PHP код:
if(strcmp(cmd"/abriradmin"true) == 0)
{
    if(
PlayerToPoint(15.0playerid1878.9000244703.299987812.5000000))
    {
        if (
PlayerInfo[playerid][pAdmin] >= 1)
        { 
//GateGaragem
             
MoveObjectDIEGOFDP1878.9000244703.29998787.0000000,3);
             
GetPlayerName(playeridsendernamesizeof(sendername));
             
format(stringsizeof(string), "* %s abriu este portгo!"sendername);
             
ProxDetector(4.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
             
GameTextForPlayer(playerid"~g~Aberto"50003);
             
SetTimer("adm2"5000false);
        }
    }
    return 
1;

assim nгo ficaria otimizado e daria mais linha ao code

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/abriradmin", true)){
    if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerToPoint(15.0, playerid, 1878.9000244, 703.2999878, 12.5000000)){
        MoveObject(DIEGOFDP, 1878.9000244, 703.2999878, 7.0000000,3);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s abriu este portгo!", sendername);
        ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
        SetTimer("adm2", 5000, false);
    }
    else{
        SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e ADMIN ***");
    }
    return 1;
}
Reply


Messages In This Thread
Abrir portгo - by silvioradcliffe - 29.12.2012, 15:32
Re: Abrir portгo - by Nice-.- - 29.12.2012, 15:35
Re: Abrir portгo - by SkullFire - 29.12.2012, 15:36
Re: Abrir portгo - by TugaBR - 29.12.2012, 15:37
Respuesta: Abrir portгo - by silvioradcliffe - 29.12.2012, 15:40
Re: Abrir portгo - by Nice-.- - 29.12.2012, 15:42
Re: Abrir portгo - by mau.tito - 29.12.2012, 15:44
Re: Abrir portгo - by Sky™ - 29.12.2012, 15:44
Re: Abrir portгo - by MegalodoN - 29.12.2012, 15:47
Respuesta: Re: Abrir portгo - by silvioradcliffe - 29.12.2012, 15:54

Forum Jump:


Users browsing this thread: 6 Guest(s)