[Ajuda]Sу quando prуximo
#2

pawn Код:
if(!PlayerToPoint(1.0, playerid, X,Y,Z))//se desejar aumentar o raio sу aumentar 1 = 1 metro, 2 = 2 metros, 3 = 3 metros e assim vai...
 {
  SendClientMessage(playerid, COR, "Vocк nгo estб proximo ao portгo.");
  return 1;
 }
Entгo faz

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)