Need help with the money system filterscripts
#2

CND:cash(playerid, params[])
{
new money;
if(sscanf(params, "ui", money)) return SendClientMessage(playerid, 0xFF0000FF, "usage /cash (value)");
If(GetPlayerMoney(playerid) < money) return SendClientMessage(playerid, 0xFF0000FF, "you don't have that value of money!");
GivePlayerMoney(playerid, -money);
return 1;
}
//this is example
//Sorry for taking long time I'm typing in ipad
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)