15.07.2012, 03:28
These warnings can be VERY annoying.
pawn Код:
COMMAND:startcustomevent(playerid, params[])
{
new string[256], text[256];
if(sscanf(params, "s[256]", text)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /startcustomevent [Event Name]");
else
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
format(string, sizeof(string), "%s %s has started the %s event, private message an online administrator to participate.", GetAdminLvlName(playerid), GetName(playerid), text);
SendClientMessageToAll(COLOR_GREY, string);
foreach (Player, i)
{
new str[15];
format(str, sizeof(str),"%d",X);
new stri = strval(str);
EventInfo[i][ePosX] = stri;
}
}
else SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You do not have access to this command");
}
return 1;
}