Help with my script - 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: Help with my script (
/showthread.php?tid=158114)
Help with my script -
Jay. - 08.07.2010
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.
Re: Help with my script -
Hiddos - 08.07.2010
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)
Re: Help with my script -
Jay. - 08.07.2010
Thanks, hiddos.