SA-MP Forums Archive
player score inc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: player score inc (/showthread.php?tid=87640)



player score inc - stanLeys - 21.07.2009

i need a SetPlayerScore function what is with payment like this
SetPlayerScore(playerid,score,value);
like this so the scores can be buyed


Re: player score inc - Grim_ - 21.07.2009

What do you mean exactly? They have to have a certain amount of money to get the score?


Re: player score inc - stanLeys - 21.07.2009

like thy have to buy score not kill people to get it


Re: player score inc - Pawno_Master - 21.07.2009

if(strcmp("/buyscore", cmdtext, true, == 0)
{
SetPlayerScore(playerid,GetPlayerScore(playerid) + 10);
SendClientMessage?(playerid,0xFF0000AA,"You have bought 10 score!!");
}


Re: player score inc - stanLeys - 21.07.2009

No no no no it would be for free i need it to cost a money


Re: player score inc - Pawno_Master - 21.07.2009

if(strcmp("/buyscore", cmdtext, true, == 0)
{
SetPlayerScore(playerid,GetPlayerScore(playerid) + 10);
SendClientMessage(playerid,0xFF0000AA,"You have bought 10 score For only $10000!!");
GivePlayerMoney(playerid, -10000);
}


Re: player score inc - stanLeys - 21.07.2009

THX


Re: player score inc - Pawno_Master - 21.07.2009

No problem


Re: player score inc - Snickers - 21.07.2009

This doesn't mean the player can't get score another way, like killing, or does it? I'm not sure, but don't you normally get +1 score if you kill somebody?


Re: player score inc - stanLeys - 21.07.2009

he he i fixed that one so if some1 kills some1 he doesnt get any score !!