Map Editor Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Map Editor Help (
/showthread.php?tid=403928)
Map Editor Help -
WiseRice - 01.01.2013
I Have This map editor which came with ravens roleplay i want the command /mapeditor for only admins (its a filterscript) can someone help
Re: Map Editor Help -
Laure - 01.01.2013
Show the command code please?
Re: Map Editor Help -
WiseRice - 01.01.2013
its a filterscript
Re: Map Editor Help -
Laure - 01.01.2013
Show the /mapeditor command from the filterscript?
Re: Map Editor Help -
WiseRice - 01.01.2013
CMD:mapeditor(playerid, params[])
{
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;
}
Re: Map Editor Help -
hydravink - 01.01.2013
pawn Код:
CMD:mapeditor(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, RED, "You're not an admin");
}else{
//code
}
return 1;
}
Re: Map Editor Help -
WiseRice - 01.01.2013
Quote:
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;
}
|
(2757) : warning 217: loose indentation
would be the return 1;
Re: Map Editor Help -
WiseRice - 01.01.2013
also how i only make admin level 1337 and 1338 can use this?
Re: Map Editor Help -
Gamer_007 - 01.01.2013
pawn Код:
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");
}
Hope it helped.
But be sure to change the variables which u took for Admin Level like in ladmin its PlayerInfo and in LuxAdmin its AccInfo.