Admin team - 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: Admin team (
/showthread.php?tid=530680)
Admin team -
YanLanger - 08.08.2014
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
Re: Admin team -
Phyzic - 08.08.2014
Use this line -
Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be administrator to choose this team.");
Re: Admin team -
gtasarules14 - 08.08.2014
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.
Re: Admin team -
Phyzic - 08.08.2014
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?
Re: Admin team -
YanLanger - 08.08.2014
Do i put it in admin system or in my gamemode ?
Re: Admin team -
Phyzic - 08.08.2014
Quote:
Originally Posted by YanLanger
Do i put it in admin system or in my gamemode ?
|
In top of your function or command.
Re: Admin team -
YanLanger - 08.08.2014
Listen y'all i just need id 217 to be my admin skin
Re: Admin team -
biker122 - 08.08.2014
How do you choose the player skin? During the class selection time, or with a separate command?
Re: Admin team -
YanLanger - 08.08.2014
class selection
Re: Admin team -
YanLanger - 08.08.2014
/bump