26.08.2016, 12:40
Has anyone got a quick /newbie system that i could use?, i tried to take one from another script i have but it kept giving me errors and well im not equipped with the right skill set to fix said errors.
CMD:newbie(playerid, params[]) { new string[128], name[MAX_PLAYER_NAME]; if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /newbie [question]."); else { GetPlayerName(playerid, name, sizeof(name)); format(string,sizeof(string), "Newbie %s: %s", name, params); SendClientMessageToAll(COLOR_NEWBIE, string); } return 1; }
You mean /newbie chat?
Код:
CMD:newbie(playerid, params[]) { new string[128], name[MAX_PLAYER_NAME]; if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /newbie [question]."); else { GetPlayerName(playerid, name, sizeof(name)); format(string,sizeof(string), "Newbie %s: %s", name, params); SendClientMessageToAll(COLOR_NEWBIE, string); } return 1; } |