Quote:
Originally Posted by Glad2BeHere
pawn Код:
CMD:money(playerid,params[]) { if(PlayerInfo[playerid][pCash] >=0) { format(string, sizeof(string), "You have %d money", PlayerInfo[playerid][pCash]); } else if(PlayerInfo[playerid][pCash] < 0) { format(string, sizeof(string), "You are in debt of %d ", PlayerInfo[playerid][pCash]); } SendClientMessage(playerid, -1, string); return 1; }
|
He doesn't want a command. He wants to keep checking if a player is in debt..
@Zachlive, editing my code to send the message to the rcon admin on the server too