05.02.2019, 09:52
pawn Code:
CMD:fsafe(playerid, cmdtext[]){
new szCmdInfo[30], szActionInfo[30], amount;
if(sscanf(cmdtext, "s[30]S()[30]", szCmdInfo, szActionInfo))
{
SendClientMessage(playerid, -1, "USAGE: /fsafe [Action]");
SendClientMessage(playerid, -1, "Available Actions: deposit, withdraw");
return 1;
}
if(!strcmp(szCmdInfo, "deposit", true)){
// Deposit here:
if(sscanf(szActionInfo, "i", amount))
{
SendClientMessage(playerid, -1, "/fsafe deposit [amount]");
return 1;
}
}
return 1;
}