10.03.2011, 19:40
[HELP] Admin Protection
10.03.2011, 19:51
Still no dialog

10.03.2011, 19:52
You can try it your self, -> 84.251.155.185:7777
Mod is now lvdm
Mod is now lvdm
10.03.2011, 21:09
Look Dude, Just make this 

Код:
if (strcmp(cmdtext, "/veh", true) == 0) { if(IsPlayerAdmin(playerid)) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Vehicles","1.Elegy\n2.Hotring Racer\n3.Super GT\n4.Bullet\n5.Police LSPD\n6.Firetruck LA","Spawn","Exit"); return 1; } else { SendClientMessage(playerid, COLOR_YELLOW, "You are not an admin"); return 1; } }
11.03.2011, 00:23
pawn Код:
if (strcmp("/veh", cmdtext, true, 5) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF030DAA,"You are not an admin!");
else {
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Vehicles","1.Elegy\n2.Hotring Racer\n3.Super GT\n4.Bullet\n5.Police LSPD\n6.Firetruck LA","Spawn","Exit");
}
return 1;
}
That would turn into:
pawn Код:
command(veh,playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF030DAA,"You are not an admin!");
else {
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Vehicles","1.Elegy\n2.Hotring Racer\n3.Super GT\n4.Bullet\n5.Police LSPD\n6.Firetruck LA","Spawn","Exit");
}
return 1;
}
11.03.2011, 04:44
He is Doing soemthing wrong i guess
11.03.2011, 07:53
Xir said than !isPlayerAdmin is only for Rcon admin, i wanna make it for Admin grouop
Like it kinda reads user%.ini and if adminlevel is < 0 it let's you to use vehicle menu
That kinda thing, if possible :S
Like it kinda reads user%.ini and if adminlevel is < 0 it let's you to use vehicle menu
That kinda thing, if possible :S
11.03.2011, 09:21
IT WORKS!!, Still need help
It works only on Gamemode, not filescript..
so, i tried
gamemode0 ls-cnr 1
gamemode1 admin 1 <-my gamemode
but not working ://
doesnt load gamemode1

It works only on Gamemode, not filescript..
so, i tried
gamemode0 ls-cnr 1
gamemode1 admin 1 <-my gamemode
but not working ://
doesnt load gamemode1
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)