Command
#1

Hey, I have a command for /kill that show a message that the player committed a suaside ...I olso have OnPlayerDeath that if someone kill someone.. it will show in chat...but when you type /kill it shows the message that player xx killed xxx...is it possible to do it so if player type /kill it will not show that message?

CODES

Код:
if(strcmp("/kill", cmdtext) == 0)
    {
		SetPlayerHealth(playerid,-1); // zabije hraca
		SendClientMessage(playerid, 0x800080FF, "[ Server ] Spбchal si samovraћdu.");
		new string[130],name[MAX_PLAYER_NAME];
		GetPlayerName(playerid,name,MAX_PLAYER_NAME);
		format(string,sizeof string,"{C0C0C0}[ Samovraћda ] Hrбc {FF0000}%s{C0C0C0} spбchal samovraћdu.",name);
		SendClientMessageToAll(0xFFFFFFAA,string);
		printf("Player %s used command %s",Jmeno(playerid), cmdtext);
		pDeaths[playerid]-=1;
        return 1;
    }
Код:
new playername[24], killername[24];
	GetPlayerName(playerid, playername, sizeof(playername));
	GetPlayerName(killerid, killername, sizeof(killername));
	PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ha4beyib1d/laugh_dp.wav");
	PlayAudioStreamForPlayer(killerid, "http://k007.kiwi6.com/hotlink/sx65ro...amestartup.mp3");
	new string[128];
	format(string,sizeof string,"{C0C0C0}[ KILL-LIST ] Hrбc %s zabil %s.",killername, playername);
	SendClientMessageToAll(0xFFFFFFAA,string);
Reply


Messages In This Thread
Command - by lsreskjn - 14.02.2014, 18:26
Re: Command - by CuervO - 14.02.2014, 18:30
Re: Command - by lsreskjn - 14.02.2014, 18:32
Re: Command - by CuervO - 14.02.2014, 18:35
Re: Command - by terrow - 14.02.2014, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)