ladmin4v2 kills - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ladmin4v2 kills (
/showthread.php?tid=414193)
ladmin4v2 kills -
JEkvall95 - 08.02.2013
I'm using this admin script
ladmin4v2
I have a blank gamemode but how to do so that the kills in the admin script represent the score ingame?
Re: ladmin4v2 kills -
Er@x3r - 08.02.2013
i don't understand... you want if you kill some1 to get +1 score?
try with: SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
Re: ladmin4v2 kills -
ThePhenix - 08.02.2013
You can check the amount of kills of the player and according the amount will depict his in game score.
Maybe:
PHP код:
if(PlayerInfo[playerid][Kills] == 10)
{
SetPlayerScore(playerid, GetPlayerScore(playerid), +1);
}
Re: ladmin4v2 kills -
JEkvall95 - 09.02.2013
where should I put it?
Re: ladmin4v2 kills -
JEkvall95 - 09.02.2013
Код:
C:\Users\Julius\Desktop\samp03x_svr_R1-2_win32\filterscripts\ladmin4v2.pwn(692) : error 029: invalid expression, assumed zero
C:\Users\Julius\Desktop\samp03x_svr_R1-2_win32\filterscripts\ladmin4v2.pwn(692) : warning 215: expression has no effect
C:\Users\Julius\Desktop\samp03x_svr_R1-2_win32\filterscripts\ladmin4v2.pwn(692) : error 001: expected token: ";", but found ")"
C:\Users\Julius\Desktop\samp03x_svr_R1-2_win32\filterscripts\ladmin4v2.pwn(692) : error 029: invalid expression, assumed zero
C:\Users\Julius\Desktop\samp03x_svr_R1-2_win32\filterscripts\ladmin4v2.pwn(692) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: ladmin4v2 kills -
RajatPawar - 09.02.2013
Just put this under OnPlayerDeath
pawn Код:
if(killerid!=INVALID_PLAYER_ID)
{
PlayerInfo[playerid][Deaths]++;
PlayerInfo[killerid][Kills]++;
SetPlayerScore(playerid, GetPlayerScore(playerid) -1);
SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
}
return 1;
This will increase the killer's score by 1, victim's by -1.
Re: ladmin4v2 kills -
JEkvall95 - 10.02.2013
but I mean the admin script doesnt save player score :S