15.04.2013, 20:24
Uma base:
OBS: Nгo testado
OBS IMPORTANTIIIIIIIIIISSIMA: Necessinta plugin sscanf, by ******
pawn Код:
COMMAND:fakekill(playerid, params[])
{
new KillerID, VictimID, reason;
if (sscanf(params, "uu", KillerID, VictimID)) SendClientMessage(playerid, 0xFF0000AA, "Uso: /fakekill [id do player que mata] [id do player morto] []");
else
{
SetPlayerHealth(VictimID, 0.0); //Mata o player que e morto
SendDeathMessage(KillerID, VictimID, reason); //Coloca que o player morreu no chat-kill
}
}
OBS IMPORTANTIIIIIIIIIISSIMA: Necessinta plugin sscanf, by ******