/admins[problem] - 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: /admins[problem] (
/showthread.php?tid=348194)
/admins[problem] -
Dan_Barocu - 04.06.2012
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
Re: /admins[problem] -
Firo - 04.06.2012
Give us the code first...
Re: /admins[problem] -
leonardo1434 - 04.06.2012
Re: /admins[problem] -
doreto - 04.06.2012
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
Re: /admins[problem] -
3ventic - 04.06.2012
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.
Re: /admins[problem] -
[NWA]Hannes - 04.06.2012
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.
Re: /admins[problem] -
Dan_Barocu - 04.06.2012
topic closed thank you all!
Re: /admins[problem] -
Firo - 04.06.2012
I see you already used the admin function to check if player is admin, 'pAdmin'..
Re: /admins[problem] -
Dan_Barocu - 04.06.2012
i dont want that..i want how i sayed
Re: /admins[problem] -
doreto - 04.06.2012
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