quick help from the pro's ;)
#10

dang dint work..it complied but when i kill with heli it does kick but when someone else kills with a GUN or Something else it kicks to :S bugged? or did i put something wrong?

Код:
	public OnPlayerDeath(playerid, killerid, reason)
	{
	new playercash;
	if(killerid == INVALID_PLAYER_ID) {
	SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	ResetPlayerMoney(playerid);
	} else {
	SendDeathMessage(killerid,playerid,reason);
	SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
	playercash = GetPlayerMoney(playerid);
	if (playercash > 0) {
	GivePlayerMoney(killerid, playercash);
	ResetPlayerMoney(playerid);
	new name[24], str[128];
	GetPlayerName(killerid, name, sizeof name);
	format(str, sizeof str, " %s has been kicked for heli killing!", name);
	SendClientMessageToAll(COLOR_YELLOW, str);
	SendClientMessage(killerid, COLOR_YELLOW, " Do NOT heli kill!");
	Kick(killerid);
	}
	else
	{
	}
	}
	return 1;
	}
Reply


Messages In This Thread
quick help from the pro's ;) - by XeoN_13 - 18.04.2009, 23:07
Re: quick help from the pro's ;) - by Joe Staff - 18.04.2009, 23:47
Re: quick help from the pro's ;) - by XeoN_13 - 19.04.2009, 00:42
Re: quick help from the pro's ;) - by Backwardsman97 - 19.04.2009, 00:47
Re: quick help from the pro's ;) - by StrickenKid - 19.04.2009, 00:48
Re: quick help from the pro's ;) - by ICECOLDKILLAK8 - 19.04.2009, 01:14
Re: quick help from the pro's ;) - by XeoN_13 - 19.04.2009, 01:31
Re: quick help from the pro's ;) - by Grim_ - 19.04.2009, 02:32
Re: quick help from the pro's ;) - by XeoN_13 - 20.04.2009, 03:16
Re: quick help from the pro's ;) - by XeoN_13 - 20.04.2009, 03:25

Forum Jump:


Users browsing this thread: 1 Guest(s)