04.07.2014, 08:56
Whatever you are a medic or working in san news when you wrote command /invite you anyway will be invited to the police work .. I think there is a mistake in the last line. Maybe anybody can help how to fix it?
Код:
CMD:invite(playerid, params[]) { new targetid; new string[128]; if(!PlayerInfo[playerid][Leader]) return SCM(playerid, COLOR_GREEN, "{AF1C1C}(INFO):{FFFFFF}Access Denied."); if(sscanf(params,"u", targetid))return SendClientMessage(playerid, COLOR_GREEN, "{E5AC00}(INFO):{FFFFFF}USAGE: /invite [playerid]"); format(string, sizeof(string), "{E5AC00}(INFO):{FFFFFF}Leader %s has invited you to join his Faction. (Use '/accept Faction' to join the Faction)", RUS(playerid)); SendClientMessage(targetid, COLOR_GREEN, string); format(string, sizeof(string), "{E5AC00}(INFO):{FFFFFF}You have invited %s to join your Faction.", RUS(targetid)); SendClientMessage(playerid, COLOR_GREEN, string); PlayerInfo[targetid][PendingInv] = 0; return 1; }