06.04.2014, 09:54
It should be like this.
pawn Код:
CMD:heal(playerid,params[])
{
if(pdata[playerid][ticket] > 2) return SendClientMessage(playerid, red,"[ERROR] You need atleast 2 tickets to use this command!");
{
#pragma unused params
SetPlayerHealth(playerid, 100);
pdata[playerid][ticket] = -2;
}
return 1;
}