16.12.2011, 02:07
You have IsPlayerLuxAdmin(playerid,3) which means that only level 3+ can use it. If you want ALL admins to use it, just keep it as IsPlayerLuxAdmin(playerid), if you want a certain level, such as 1+ or 2+ you can have (playerid, 1) or (playerid,2) the number after playerid, just shows the level you want it for. Remove the number if you want all admins to use it.
EDIT: Or use something like this:
EDIT: Or use something like this:
pawn Код:
CMD:startevent(playerid, params[])
{
if(IsPlayerLuxAdmin(playerid,3))
{
new string[120]; new pname[24]; GetPlayerName(playerid, pname, 24);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetGVarFloat("EventX", x); SetGVarFloat("EventY", y); SetGVarFloat("EventZ", z); SetGVarInt("EventI", GetPlayerInterior(playerid)); SetGVarInt("EventStarted", 1);
format(string, 120, "[EVENT] Admin Event Has Started. Type /yes to join.");
SendClientMessageToAll(COLOR_BLUE, string);
GameTextForAll("~w~Event Has Started Type ~n~~r~/Yes ~g~To Join!",6000,3);
SendClientMessage(playerid, COLOR_GREEN, "You have started an event. Type /endevent to end it.");
}
else return SendClientMessage(playerid, -1, "SERVER: Unknown Command.");
return 1;
}