[Help] Player Indicator!
#6

pawn Код:
new Indicator = 1318;

CMD:objetivo(playerid, params[])
{
    if(!IsPlayerLuxAdmin(playerid)) return SendClientMessage(playerid, COLOR_YELLOW, "[Info] Solo los Administradores pueden hacer esto!");
    if(sscanf(params, "d", rid)) return SendClientMessage(playerid, COLOR_YELLOW, "Uso: /objetivo [playerid/name]");
    if(!IsPlayerConnected(rid)) return SendClientMessage(playerid, COLOR_BLUE, "Este jugador no esta conectado");
    else
    {
        AttachObjectToPlayer(Indicator, playerid, 0, 0, 3, 0, 0, 0);
    }
    return 1;
}


public OnPlayerDeath(playerid, killerid, reason)
{

    if(Objetivo[playerid] != 1) return 0;
    else
    {
        Objetivo[playerid] = 0;
        DestroyObject(Indicator[playerid]);
    }
    return 1;
}
Try this.
Reply


Messages In This Thread
[Help] Player Indicator! - by leaNN! - 15.08.2011, 16:02
AW: [Help] Player Indicator! - by samtey - 15.08.2011, 16:04
Re: [Help] Player Indicator! - by OwlCity - 15.08.2011, 16:13
Respuesta: [Help] Player Indicator! - by leaNN! - 15.08.2011, 16:15
Respuesta: [Help] Player Indicator! - by leaNN! - 15.08.2011, 16:38
Re: [Help] Player Indicator! - by Darnell - 15.08.2011, 16:44
Respuesta: [Help] Player Indicator! - by leaNN! - 15.08.2011, 16:47
Re: [Help] Player Indicator! - by Darnell - 15.08.2011, 16:49
Re: [Help] Player Indicator! - by SchurmanCQC - 15.08.2011, 17:03
Respuesta: [Help] Player Indicator! - by leaNN! - 15.08.2011, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)