Lmao Shadow.. Don't Treat newbies like that once all were like that
@Kittrell
Hand cash Tax:
[pawn]}
else if (strcmp(cmd, "tax", true) == 0) {
new szMsg[256], plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if ( !IsNumeric( tmp ) ) SendClientMessage( playerid, COLOR_YELLOW, "Error: Amount Should be Number!" );
else if(!IsPlayerCommandLevel(playerid,"tax")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c tax [Nick/ID] [Amount]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
format(szMsg,sizeof(szMsg),"%s has taxed %s for $%d dollars",gPlayers[playerid],gPlayers[plr], tmp);
SendClientMessageToAll(COLOR_YELLOW,szMsg);
DecPlayerHandCash(playerid,tmp);
}
return 1;
}[/pawn]
Bank Tax Command
[pawn] else if (strcmp(cmd, "btax", true) == 0) {
new szMsg[256], plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if ( !IsNumeric( tmp ) ) SendClientMessage( playerid, COLOR_YELLOW, "Error: Amount Should be Number!" );
else if(!IsPlayerCommandLevel(playerid,"tax")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c btax [Nick/ID] [Amount]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
format(szMsg,sizeof(szMsg),"%s has taxed %s for $%d dollars",gPlayers[playerid],gPlayers[plr], tmp);
SendClientMessageToAll(COLOR_YELLOW,szMsg);
DecPlayerBankCash(playerid,tmp);
}
return 1;
}[/pawn]
Havent Tested but im pretty sure it works.. so, be sure you backup your scripts before your add it to your script
Hope it helps and enjoy