help changing money score to kill(point) score please -
spike87 - 08.12.2008
hi i have this gamemode
http://forum.sa-mp.com/index.php?topic=73292.0
i just wanted to know how would i change the scoring so that when u kill some 1 u get a point and when u arrest some 1 u get a point 2 but if u kill some1 when u r a cop u will lose a point if they aint wanted. and then make it so it saves your score and money? can any1 help me please?? thanks so much
Re: help changing money score to kill(point) score please -
spike87 - 08.12.2008
i have worked out how to add ths SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
but now how do i make it so that it saves the score when some 1 leaves the game?
Re: help changing money score to kill(point) score please -
x-cutter - 08.12.2008
Search for Djson/Dini for the file thing... It helps alot
Re: help changing money score to kill(point) score please -
spike87 - 08.12.2008
ok i have got it working part from 1 thing when i connect it dont load my score it sets it as 0 but when i leave it saves it cos i look in the scriptfiles and it has me score but it resets everytime i connect can come 1 please help me?
Re: help changing money score to kill(point) score please -
Tez2k7 - 08.12.2008
Load it OnPlayerLogin.
Re: help changing money score to kill(point) score please -
spike87 - 09.12.2008
hi i have 1 prob some how i have set it so the person that gets killed gets the point but i want it the other way aeound i have been looking at my script 4 ages i dont know what to do to fix it can some 1 please help me??
Re: help changing money score to kill(point) score please -
spike87 - 09.12.2008
please can some 1 help me?
Re: help changing money score to kill(point) score please -
ettans - 09.12.2008
You probably have 'SetPlayerScore(playerid', change the playerid to killerid.
Re : help changing money score to kill(point) score please -
said_killer - 19.09.2011
pawn Code:
// under OnPlayerDeath
Just put it under GetPlayerName(killerid, killer, sizeof(killer));
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
Re : help changing money score to kill(point) score please -
said_killer - 19.09.2011
pawn Code:
pawn Code:
// under OnPlayerDeath
Just put it under GetPlayerName(killerid, killer, sizeof(killer));
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);