SA-MP Forums Archive
Need help with /kill command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with /kill command (/showthread.php?tid=538114)



Need help with /kill command - 1fret - 19.09.2014

Im trying to make a kill command but any time a it send them this and that for when a player gets kill what should i do
pawn Код:
if(killerid != INVALID_PLAYER_ID)
    {
    SendClientMessage(killerid,0xAA3333AA,"Well Done");
    GameTextForPlayer(playerid,"~g~You've Killed A Player And Recieved $2000 + 1 score", 3000, 3);
    pScore[killerid]++;
    SetPlayerScore(killerid, pScore[killerid]);
    GivePlayerACash(killerid,2000);
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
    PlayerKills[killerid] ++;
    new pstr[128], name[24],tex[128];
    GetPlayerName(killerid, name, 24);
    format(pstr, 128, "Be Advice: %s is wanted for murdering (%s)", name, tex[1]);
    MessageToPolice(pblue,pstr);
    }
    GameTextForPlayer(playerid,"~r~You have Been killed And You Lost $1000", 3000, 3);
    GivePlayerACash(playerid,-1000);
    PlayerDeaths[playerid] ++;
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 0);
    {
But i only want it to send the this
pawn Код:
CMD:kill(playerid,params[])
{
SetPlayerHealth(playerid,-1);
return 1;
}