/admins[problem]
#1

i made a cmd and i dont know how to add the so if hes admin level 1 = moderator get it and so on..how do i add?the cmd is good i cant post it1
Reply
#2

Give us the code first...
Reply
#3

Reply
#4

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
i made a cmd and i dont know how to add the so if hes admin level 1 = moderator get it and so on..how do i add?the cmd is good i cant post it1
something like that

pawn Код:
if(IsPlayerIsModerator[playerid] == 1) // this is example xd
{
    //your code
}else SendClientMessage(playerid,-1,"You are not moderator");
if not you bether show as your code
Reply
#5

pawn Код:
new title;
switch(admin-level-variable)
{
case 1:
    title = "Moderator"; //Set title
    break;
case 2:
case 3:
case 4:
    title = "Administrator";
    break;
case 5:
    title = "Owner";
    break;
default:
    title = "N/A";
}
Something like that should work as you described. This would set the title of level 1 as moderator, 2-4 as administrator and 5 as owner.
Reply
#6

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
i made a cmd and i dont know how to add the so if hes admin level 1 = moderator get it and so on..how do i add?the cmd is good i cant post it1
It's impossible for us to help unless you give more code.
Reply
#7

topic closed thank you all!
Reply
#8

I see you already used the admin function to check if player is admin, 'pAdmin'..
Reply
#9

i dont want that..i want how i sayed
Reply
#10

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
i dont want that..i want how i sayed
WTF did you say NOTHING dont you read holl page on people saying to you to post code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)