01.01.2013, 10:13
I Have This map editor which came with ravens roleplay i want the command /mapeditor for only admins (its a filterscript) can someone help
CMD:mapeditor(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, RED, "You're not an admin");
}else{
//code
}
return 1;
}
CMD:mapeditor(playerid, params[]) { if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, 0xFF0000C8, "You do not have permission to use this command!"); }else { ShowPlayerDialog(playerid, DIALOG_MAIN, DIALOG_STYLE_LIST, "SA-MP Map Editor 1.0", "New object\nDelete object\nEnable selector\nObjects\nSearch by objects\nOpen Map\nSave Map\nClose Map\nConfigurations", "Select", "Close"); } return 1; } |
CMD:mapeditor(playerid,params)
{
if(PlayerInfo[playerid][Level] >= 1337 || IsPlayerAdmin(playerid))
{
ShowPlayerDialog(playerid, DIALOG_MAIN, DIALOG_STYLE_LIST, "SA-MP Map Editor 1.0", "New object\nDelete object\nEnable selector\nObjects\nSearch by objects\nOpen Map\nSave Map\nClose Map\nConfigurations", "Select", "Close");
}
else return SendClientMessage(playerid,COLOR,"ERROR:You are not at enough level to use this command");
}