22.11.2014, 11:59
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
{
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