Help with my script
#1

Ok i'm making a weapon menu for my server, But..!

I'm using score Points to buy the weapons but i'm having some problems with this.


pawn Код:
if(CurrentMenu == weapons)
        {
    switch(row)
    {
        case 0:
        {
          if(GetPlayerScore(playerid)>100)
          {
            GivePlayerWeapon(playerid,29,200);
            SendClientMessage(playerid,0xFFFF00FF,"[SUCCES]> Weapon Purchased.");
            PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
            return 1;
          }
          else
          {
          SendClientMessage(playerid,0xFF1E00FF,"You need +80 Score points to purchase this item.");
          return 1;
          }

Now its ment to let you buy the weapon with 80 or over score points but it doesn't work atall..

Dunno why, Maybe you no how i can make the code work?

Thanks.
Reply
#2

pawn Код:
if(GetPlayerScore(playerid)>100)
That checks if the player has more then 100 score, if it's equal to 80 it'll return 0 as well.

pawn Код:
if(GetPlayerScore(playerid)>=80)
Reply
#3

Thanks, hiddos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)