OnVehicleDeath - OnPlayerDeath?
#5

Quote:
Originally Posted by Dark_Kostas
Посмотреть сообщение
I didnt understand what exactly he wanted. Edited
I mean if you are in a vehicle and i kill you, i got +1 in score

that you told me didnt work, or i did put in in wrong place

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new cadena[256];
    new name[MAX_PLAYER_NAME];
    new name2[MAX_PLAYER_NAME];
	new Float:px,Float:py,Float:pz;
	SendDeathMessage(killerid, playerid, reason);
	GetPlayerPos(playerid, px, py, pz);
	gPlayerSpawned[playerid] = 0;
	GetPlayerName(playerid, name, sizeof(name));
	GetPlayerName(killerid, name2, sizeof(name2));
	/*if(PlayerInfo[playerid][pGang] != PlayerInfo[killerid][pGang])
 {*/
    PlayerInfo[killerid][pKills] += 1;
    PlayerInfo[playerid][pDeaths] += 1;
    format(cadena,255,"%s killed %s",name2,name);
    SendClientMessageToAll(COLOR_NICERED, cadena);
    if(IsPlayerInAnyVehicle(playerid)) SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
	return 1;
}
Reply


Messages In This Thread
OnVehicleDeath - OnPlayerDeath? - by cruising - 15.08.2010, 18:46
Re: OnVehicleDeath - OnPlayerDeath? - by Dark_Kostas - 15.08.2010, 18:59
Re: OnVehicleDeath - OnPlayerDeath? - by ikey07 - 15.08.2010, 18:59
Re: OnVehicleDeath - OnPlayerDeath? - by Dark_Kostas - 15.08.2010, 19:01
Re: OnVehicleDeath - OnPlayerDeath? - by cruising - 15.08.2010, 19:17
Re: OnVehicleDeath - OnPlayerDeath? - by cruising - 15.08.2010, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)