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...