16.03.2017, 07:23
First, you need to know the adminship variable in your script the most popular is: pInfo[playerid][pAdmin];
or you can even choose it for an rcon admin with: IsPlayerAdmin(playerid)
then use an " if " statement to check the admin level of player.
or you can even choose it for an rcon admin with: IsPlayerAdmin(playerid)
then use an " if " statement to check the admin level of player.
PHP код:
CMD:toggleooc(playerid)
{
if (pInfo[playerid][pAdmin] >= 3)
{ //Replace 3 with the number you want. OR for rcon admin.
if(IsPlayerAdmin(playerid))
{
if(OOC_status)
{

