player score inc
#1

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

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

like thy have to buy score not kill people to get it
Reply
#4

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

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

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);
}
Reply
#7

THX
Reply
#8

No problem
Reply
#9

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?
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)