19.10.2016, 19:58
CMD Does not working here is the CMD
pawn Код:
CMD:sethours(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
new targetid, hours, string[150];
if(sscanf(params, "ud", targetid, hours)) return SendClientMessage(playerid, -1, "{FF8C00}[USAGE] {FFFFFF}/sethours [playerid] [hours]");
PlayerInfo[targetid][pHours] = hours;
format(string, sizeof(string), "{FF8C00}[INFO] {FFFFFF}You edited %s's hours to %d.", targetid, hours);
SendClientMessage(playerid, -1, string);
SendClientMessage(targetid, -1, "{FF8C00}[INFO] {FFFFFF}Your hours were edited. Check your /stats.");
return 1;
}
else return SendClientMessage(playerid, -1, "{FF0000}[ERROR] {FFFFFF}You are unauthorized to use this command.");
}