Posts: 35
Threads: 13
Joined: Jul 2009
Reputation:
0
i need a SetPlayerScore function what is with payment like this
SetPlayerScore(playerid,score,value);
like this so the scores can be buyed
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
What do you mean exactly? They have to have a certain amount of money to get the score?
Posts: 35
Threads: 13
Joined: Jul 2009
Reputation:
0
like thy have to buy score not kill people to get it
Posts: 35
Threads: 13
Joined: Jul 2009
Reputation:
0
No no no no it would be for free i need it to cost a money
Posts: 379
Threads: 53
Joined: Jun 2009
Reputation:
0
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);
}
Posts: 371
Threads: 9
Joined: Sep 2007
Reputation:
0
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?
Posts: 35
Threads: 13
Joined: Jul 2009
Reputation:
0
he he i fixed that one so if some1 kills some1 he doesnt get any score !!