player types /kill but stays alive?
#1

Sometimes when a player types /kill they stay alive on 1 hp, any way i could fix this, as far as i know this could also be caused by server lag maybe?

Код:
command(kill, playerid, params[])
{
	new pID = playerid, string[128];
	if(!IsAdmin(playerid)) return SetPlayerHealth(playerid,0.0);
	if(GetPlayerAdmin(playerid) < 3) return SendBlockedAdminCommand(playerid, 3);
	if(sscanf(params, "u", pID)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /kill [ Playerid / Name ]");
	if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_YELLOW, "Player not connected.");
	format(string, sizeof(string), "You killed %s [ %d ]", GetName(pID), pID);
	SetPlayerHealth(pID, 0.0);
	SendClientMessage(playerid, COLOR_ADMIN, string);
	return 1;
}
Thanks in advance.
Reply
#2

Try this
pawn Код:
SetPlayerHealth(pID, -999999);
Reply
#3

Slap them into the sky 50.0 meters.
Reply
#4

XD !!!!
pawn Код:
new MBX[ MAX_WHORES ]
Reply
#5

Quote:
Originally Posted by MBX97
Посмотреть сообщение
XD !!!!
pawn Код:
new MBX[ MAX_WHORES ]
Cheers man I think you solved my problem....

At iggy I'll try that tomorrow thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)