help changing money score to kill(point) score please
#1

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
Reply
#2

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

Search for Djson/Dini for the file thing... It helps alot
Reply
#4

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

Load it OnPlayerLogin.
Reply
#6

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

please can some 1 help me?
Reply
#8

You probably have 'SetPlayerScore(playerid', change the playerid to killerid.
Reply
#9

pawn Code:

// under OnPlayerDeath

Just put it under GetPlayerName(killerid, killer, sizeof(killer));

SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)