19.09.2014, 21:56
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
But i only want it to send the this
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);
{
pawn Код:
CMD:kill(playerid,params[])
{
SetPlayerHealth(playerid,-1);
return 1;
}