15.08.2011, 16:44
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;
}