SA-MP Forums Archive
Please Help me ... it's pissing me off - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Please Help me ... it's pissing me off (/showthread.php?tid=74821)



Please Help me ... it's pissing me off - Bearfist - 26.04.2009

Please sum up where I have to add lines like this
-->
Код:
If(killscore[playerid] = 1)
..blabla...
and
--->
Код:
InGunGame[playerid]=1;
//also
InGunGame[playerid]=0;
PS: It's in A gamemode, so It's activated by command (for example: /gg)

...Iam scripting on this so long..it doesn't want to work =(

Bearfist







Re: Please Help me ... it's pissing me off - MenaceX^ - 26.04.2009

I didn't get your problem?


Re: Please Help me ... it's pissing me off - Mike-Chip - 26.04.2009

pawn Код:
If(killscore[playerid] == 1)
because == is used to compares a value


Re: Please Help me ... it's pissing me off - Bearfist - 26.04.2009

So explain it once more..
I made a gungamemode IN my gamemode ..

Onplayerspawn I added which weapon to get, if the killscore is 1 or 2 and so on...[when gungame is On]

the commmand activates the gungame.... so Gungame = 1;

OnPlayerdeath the killer gets killscore[killerid] ++
and also the player who got killed gets Deathscore[playerid]++

But after killed another player the killer don't get a new weapon..thats my problem

Hope its understandable ^^

Bearfist


Re: Please Help me ... it's pissing me off - Mike-Chip - 26.04.2009

make something like:

pawn Код:
if(killscore[killerid] == 2) {
GivePlayerWeapon(killerid, weapon, ammo);
SendClientMessage(killerid, 0xFFFF00FF, "You are now in Level 2");
}



Re: Please Help me ... it's pissing me off - Bearfist - 26.04.2009

Yes I made it...
and where to put in...
onplayerdeath or on
onplayerspawn ?

bearfist


Re: Please Help me ... it's pissing me off - Mike-Chip - 26.04.2009

OnPlayerDeath


Re: Please Help me ... it's pissing me off - MenaceX^ - 26.04.2009

Also you need GetPlayerScore..


Re: Please Help me ... it's pissing me off - Bearfist - 26.04.2009

And why do I need GetPlayerScore ?


Re: Please Help me ... it's pissing me off - Mike-Chip - 26.04.2009

MenaceX is right...
if want to use the score instead of "killscore"...
then you have to use GetplayerScore...