[HELP] silver points - 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)
+--- Thread: [HELP] silver points (
/showthread.php?tid=555363)
[HELP] silver points -
Luca12 - 07.01.2015
Hello I was add the player silver points to 4 and he type for example /giverespect and for one 1 silver point he get two respects but the problem is know that I made code if player has not 1 point then it says to him you don't have 1 silver point for respect but he have 4 points. Thanks
pawn Код:
if(PlayerInfo[playerid][pSilverPoint] < 1)
{
SendClientMessage(playerid,COLOR_GRAD2,"You don't have one 1 silver point for respect");
return 1;
}
Re: [HELP] silver points -
nezo2001 - 07.01.2015
I don't understand you but i think you have to make this
PHP код:
if(PlayerInfo[playerid][pSilverPoint] == 0)
{
SendClientMessage(playerid,COLOR_GRAD2,"You don't have one 1 silver point for respect");
return 1;
}
If the player info equal Zero (less than one !

).
Re: [HELP] silver points -
Luca12 - 07.01.2015
it doesn't help I have 13 silver points but for removing warn from stats need 20 points and when I was type /removewarn I was remove but I shouldn't beacuse I only have 13 silver points
Re: [HELP] silver points -
mahdi499 - 07.01.2015
Can you show us the command for /removewarn.
Re: [HELP] silver points -
Shaneisace - 07.01.2015
Код:
CMD:removewarning(playerid, params[])
{
if(PlayerInfo[playerid][pSilverPoint] < 20) return SendClientMessage(playerid, -1, "You don't have 20 Silver Points to remove the warning.");
PlayerInfo[playerid][pSilverPoint] -= 20; // Take 20 points off the player
PlayerInfo[playerid][pWarn]--; // Remove 1 warning (Depends on your pinfo data).
SendClientMessage(playerid, -1, "You spent 20 silver points and removed a warning!");
return 1;
}
Depends on what command system you use i used ZCMD here.