08.07.2010, 19:35
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.
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.
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.