Kill Get Score And Message For Score [HELPP] [BUG] [ASK]
#1

How To "You Got score %d << Got Score From Killing Example Random 17

And Message Say , You God Score 17 From Kill blablabla
How To ??

OnPlayerDeath
Code:
SetPlayerScore(killerid,GetPlayerScore(killerid)+random(25));
new string[120];
format(string,120,"You Got score from killing %s[%d]!",GetName(playerid),playerid);
SendClientMessage(killerid,-1,string);
Function Get Name
Code:
stock GetName(playerid)
{
    new pName[68];
    GetPlayerName(playerid, (pName), sizeof(pName));
    return pName;
}
Sorry for my bad english
Reply
#2

Is it the same ? https://sampforum.blast.hk/showthread.php?tid=539757

Cause if yes making the same thread is not allowed (I think so not sure.. read forum rules)
Reply
#3

As you want to leave or not understand death?
Reply
#4

I Want If i Kill playerid , I Get score example 5 . and Send Message , You Kill playerid and got 5 score how to ?
Reply
#5

Quote:
Originally Posted by FloxX
View Post
I Want If i Kill playerid , I Get score example 5 . and Send Message , You Kill playerid and got 5 score how to ?
something?

changes pInfo[playerid][kills] with which you have defined me understand?

pawn Code:
new string[128];
format(string,sizeof(string),"you killed %s and your score is [%d]",GetName(playerid), pInfo[playerid][Kills]);
SendClientMessage(killerid,-1,string); //leave you the message he killed
Reply
#6

No -__- , Now is my score 252 okay , if i kill you i get 7 score , 252+7 = 259
and the killerid/me get message

You got score 7 From Killing richard ? you understand ?

just example
Reply
#7

Quote:
Originally Posted by FloxX
View Post
No -__- , Now is my score 252 okay , if i kill you i get 7 score , 252+7 = 259
and the killerid/me get message

You got score 7 From Killing richard ? you understand ?

just example
because +random(25)?

pawn Code:
SetPlayerScore(killerid,GetPlayerScore(killerid)+random(25)); // +random(25)??
if you want him to score 7 that killed so you have to put

pawn Code:
SetPlayerScore(killerid,GetPlayerScore(killerid)+7);
or you wish to leave the exact score?

example

252 and you kill a player and gives you 7 rating but do not want to leave the message 7? if not 259?
Reply
#8

Okay i already change that code , and how to if i kill you send client message : You Got Score 7 From Kill Richard ?
Reply
#9

Quote:
Originally Posted by FloxX
View Post
Okay i already change that code , and how to if i kill you send client message : You Got Score 7 From Kill Richard ?
ok, you want to just leave 7? playerid and died?

You want to leave Got Score Kill 7 From Richard

in this case would you kill me, you gain 7 marks and will come out to you the message of You got score 7 death of richard?

explain to me a little more or send a picture of what comes out you
Reply
#10

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    new str[128];
    new playername[MAX_PLAYER_NAME];
    new Float:oldscore = GetPlayerScore(killerid);
    GetPlayerName(playerid,playername,sizeof(playername));
    SetPlayerScore(killerid,GetPlayerScore(killerid)+random(25));
    new Float:newscore = GetPlayerScore(killerid);
    format(str,sizeof(str),"You Have Killed %s (%d) And Have Been Given %d Score. Total Score: %d",playername,playerid,newscore-oldscore,GetPlayerScore(killerid));
    SendClientMessage(killerid,-1,str);
    return 1;
}
Something like this?
I can't really tell you if this is correct as I have written this in my web browser and it's 9am.
But if it works, let me know.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)