Admin team
#1

How can i make admin team, that only admin can choose that team?? oh if regular player chooses this team it says "You need to be administrator to choose this team" or w/e
Reply
#2

Use this line -

Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be administrator to choose this team.");
Reply
#3

pawn Код:
new skin = GetPlayerSkin(playerid);
        if(skin = (Your skin ID)
        {
           if(PlayerInfo[playerid][pAdmin] < 1)
           {
             SendClientMessage(playerid, -1, "This is a admin team");
           }
           else
           {
             SpawnPlayer(playerid);
           }
           return 1;
       }
I believe this is how you do it , if im wrong, anyone correct me thanks
I used Y_INI PlayerInfo in this.
Reply
#4

Quote:
Originally Posted by gtasarules14
Посмотреть сообщение
[pawn]new skin = GetPlayerSkin(playerid);
if(skin = (Your skin ID)
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, -1, "This is a admin team");
}
else
{
SpawnPlayer(playerid);
}
return 1;
}

I believe this is how you do it , if im wrong, anyone correct me thanks
Why are you checking the skin? The skin can be used by any random player too?
Reply
#5

Do i put it in admin system or in my gamemode ?
Reply
#6

Quote:
Originally Posted by YanLanger
Посмотреть сообщение
Do i put it in admin system or in my gamemode ?
In top of your function or command.
Reply
#7

Listen y'all i just need id 217 to be my admin skin
Reply
#8

How do you choose the player skin? During the class selection time, or with a separate command?
Reply
#9

class selection
Reply
#10

/bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)