[HELP] Admin Protection
#21

Try this

http://pastebin.com/GmGgs559
Reply
#22

Still no dialog
Reply
#23

You can try it your self, -> 84.251.155.185:7777

Mod is now lvdm
Reply
#24

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;
		}
 	}
Reply
#25

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;
    }
I highly recommend zcmd.

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;
}
Plus, it is MUCH faster than strcmp.
Reply
#26

He is Doing soemthing wrong i guess
Reply
#27

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
Reply
#28

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)