few stuff that i need help in...
#5

Quote:
Originally Posted by Doom8890
Посмотреть сообщение
Hello,I will help you in few things...
First...

About the score...Put this OnGameModeInIt() and it should work.
pawn Код:
new score;
score = GetPlayerMoney(playerid);
SetPlayerScore(playerid,score);
Now the killing...

Put this OnPlayerDeath();
pawn Код:
new playercash;
playercash = GetPlayerMoney(playerid);
GivePlayerMoney(killerid,playercash);
And please in future ask for scripts in Script request thread...

Thats all
this wont work
pawn Код:
new score;
score = GetPlayerMoney(playerid);
SetPlayerScore(playerid,score);
as OnGameModeInIt() does not pass payerid hence the () so to get it to work either make a timer and run it in there or put it under the OnPlayerUpdate(playerid)

2. this
pawn Код:
new playercash;
playercash = GetPlayerMoney(playerid);
GivePlayerMoney(killerid,playercash);
will give the killer all of the players money but wont take any off the player.
so to make it a bit better...and only take some say 10% go
pawn Код:
new playercash;
playercash = (GetPlayerMoney(playerid) /10);
GivePlayerMoney(killerid,playercash);
GivePlayerMoney(playerid,-playercash);
Reply


Messages In This Thread
few stuff that i need help in... - by omer5198 - 09.11.2010, 16:42
Re: few stuff that i need help in... - by Scenario - 09.11.2010, 16:56
Re: few stuff that i need help in... - by Doom8890 - 09.11.2010, 17:00
Re: few stuff that i need help in... - by omer5198 - 09.11.2010, 17:17
Re: few stuff that i need help in... - by (SF)Noobanatior - 10.11.2010, 03:52

Forum Jump:


Users browsing this thread: 2 Guest(s)