[Pedido] Comando /Marcar [PLAYERID] Mapa Gta
#3

sу consegui com sscanf

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"/markar", true))
    {
        new id;
        if(sscanf(cmdtext,"u", id))
            return SendClientMessage(playerid, -1,"/markar <id>");

        new Float:x, Float:y, Float:z;
        GetPlayerPos(id, x,y,z);
        SetTimerEx("Carol", 1000, false,"iifff", playerid,id, x,y,z);
        return 1;
    }
    return 0;
}
forward Carol(playerid,id, Float:xi, Float:ye, Float:cl);
public Carol(playerid,id, Float:xi, Float:ye, Float:cl)
{
    if(IsPlayerInRangeOfPoint(playerid, 100.0,xi,ye,cl))
    {
        SendClientMessage(playerid, -1,"Achooooooow");
        SetPlayerMarkerForPlayer(playerid, id, 0xFFFFFF00);
        return 1;
    }
    return SetTimerEx("Carol", 1000, false,"ifff", playerid, xi,ye,cl);
}
Reply


Messages In This Thread
[Pedido] Comando /Marcar [PLAYERID] Mapa Gta - by [Red]Maninho - 05.10.2011, 01:21
Re: [Pedido] Comando /Marcar [PLAYERID] Mapa Gta - by Pharrel - 05.10.2011, 01:27
Re: [Pedido] Comando /Marcar [PLAYERID] Mapa Gta - by [O.z]Caroline - 05.10.2011, 01:28
Re: [Pedido] Comando /Marcar [PLAYERID] Mapa Gta - by Pharrel - 05.10.2011, 01:31
Respuesta: [Pedido] Comando /Marcar [PLAYERID] Mapa Gta - by [Red]Maninho - 05.10.2011, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)