[Ajuda]Sу quando prуximo
#5

VocК tem de por o !
Que significa diferente no caso de igualdade vocк poe !=
E vocк tem de ver se ele estб no ponto ou proximo antes de executar a aзгo...
Por exemplo:
pawn Код:
if(PlayerInfo[playerid][pMember] != 1) {
SendClientMessage(playerid, 0x00C2ECFF, "Vocк nгo й dos Cripz.");
return 1;
}
Sak's?

pawn Код:
if (strcmp("/abrirportao", cmdtext, true, 10) == 0)
        {
        if(!PlayerToPoint(5.0, playerid, -302.33084106445, 1507.4466552734, 77.196853637695))
        {
        SendClientMessage(playerid, 0x00C2ECFF, "Vocк nгo estб proximo ao portгo.");
        return 1;
        }
        new pn[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pn, sizeof(pn));
        format(string, sizeof(string), "[INFO] O jogador %s estб abrindo o portгo da pista principal ( /abrirportao )", pn);
        SendClientMessageToAll(0x00C2ECFF, string);
        MoveObject(portaop, -302.33084106445, 1507.4466552734, 77.196853637695, 3.0);
        SendClientMessage(playerid,0x4169FFAA, "[INFO] O Portгo estб abrindo.");
        return 1;
    }
Reply


Messages In This Thread
[Ajuda]Sу quando prуximo - by felipewireless - 24.01.2011, 18:09
Re: [Ajuda]Sу quando prуximo - by Macintosh - 24.01.2011, 18:15
Re: [Ajuda]Sу quando prуximo - by ManoLexuS - 24.01.2011, 18:19
Re: [Ajuda]Sу quando prуximo - by felipewireless - 24.01.2011, 18:25
Re: [Ajuda]Sу quando prуximo - by Macintosh - 24.01.2011, 18:28
Re: [Ajuda]Sу quando prуximo - by felipewireless - 24.01.2011, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)