Re: [Snippet] Adding Player EXP
i want picture preview
Screenshot by Lightshot <<< Using this?
Kill player
Re: [Snippet] Adding Player EXP
Anyone know how adding player money ?
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Thiago Costa
Anyone know how adding player money ?
Change this the 0's are money
SetReward(3, "PlayerKill", 0, 15, 0, 15);
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
Change this the 0's are money
SetReward(3, "PlayerKill", 0, 15, 0, 15);
More will appear the message to kill the player?
Re: [Snippet] Adding Player EXP
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
I use the src thv2, I'm not finding these codes.
Re: [Snippet] Adding Player EXP
Its on WarZ.sln (client side)
and if you still don't find it look for gLangMngr.getString("InfoMsg_XPAdded and then copy the code it has like i did above.
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
Its on WarZ.sln (client side)
and if you still don't find it look for gLangMngr.getString("InfoMsg_XPAdded and then copy the code it has like i did above.
It worked.
Now I have another problem, the letters are coming one on top of another. Is to solve?
THX LIKE !
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
Of to do it with players?
Ex: I kill a player and appears on the screen for all to see.
I know I have the killfeed, the more it shows in the chat. I wanted to show CS type.
SOURCE V2/V3
Re: [Snippet] Adding Player EXP
Quote:
Originally Posted by
Syxn
To have it popup like xp does look for this
if(n.XP > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_XPAdded"), n.XP);
hudMain->showMessage(tmpStr);
}
and paste this above or below it.
if(n.GD > 0)
{
char tmpStr[64];
sprintf(tmpStr, gLangMngr.getString("InfoMsg_DollarsPickedUp"), n.GD);
hudMain->showMessage(tmpStr);
}
now working ; can`t adding dollars