#1

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(playeridpnamesizeof(pname));
    
format(kstringsizeof(kstring), "~b~Haha Ya 0wned %s",pname);
    
GameTextForPlayer(killeridkstring40003);
    new 
kname[MAX_PLAYER_NAME];   //killername
    
GetPlayerName(killeridknamesizeof(kname));
    
format(pstringsizeof(pstring), "~r~:( you got 0wned by %s",kname);
    
GameTextForPlayer(playeridpstring40003);
    
    new 
kscore=GetPlayerScore(killerid);
    
SetPlayerScore(killerid,kscore++);
    
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    
PlayerInfo[playerid][Deaths]++;
    
PlayerInfo[killerid][Kills]++; 
Reply


Messages In This Thread
help - by ScripteRNaBEEL - 01.07.2014, 16:17
Re: help - by Threshold - 01.07.2014, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)