15.08.2010, 19:17
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
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; }