01.07.2014, 16:17
i need help with this when some in killing to any player he doesnt get score who where death he get +1 score help me to fix this.....
PHP код:
new kstring[128]; //killer message
GetPlayerName(playerid, pname, sizeof(pname));
format(kstring, sizeof(kstring), "~b~Haha Ya 0wned %s",pname);
GameTextForPlayer(killerid, kstring, 4000, 3);
new kname[MAX_PLAYER_NAME]; //killername
GetPlayerName(killerid, kname, sizeof(kname));
format(pstring, sizeof(pstring), "~r~:( you got 0wned by %s",kname);
GameTextForPlayer(playerid, pstring, 4000, 3);
new kscore=GetPlayerScore(killerid);
SetPlayerScore(killerid,kscore++);
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
PlayerInfo[playerid][Deaths]++;
PlayerInfo[killerid][Kills]++;