Please Help me ... it's pissing me off
#1

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




Reply
#2

I didn't get your problem?
Reply
#3

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

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

make something like:

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

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

bearfist
Reply
#7

OnPlayerDeath
Reply
#8

Also you need GetPlayerScore..
Reply
#9

And why do I need GetPlayerScore ?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)