[HELP] silver points
#5

Код:
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.
Reply


Messages In This Thread
[HELP] silver points - by Luca12 - 07.01.2015, 16:44
Re: [HELP] silver points - by nezo2001 - 07.01.2015, 16:49
Re: [HELP] silver points - by Luca12 - 07.01.2015, 17:13
Re: [HELP] silver points - by mahdi499 - 07.01.2015, 17:45
Re: [HELP] silver points - by Shaneisace - 07.01.2015, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)