Please Help me with a Skin - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Please Help me with a Skin (
/showthread.php?tid=72878)
Please Help me with a Skin -
fff - 11.04.2009
Hi all .I Want to know how to make a skin just for admin.If a normal player spawn with that skin to be kicked.
Re: Please Help me with a Skin -
basker - 11.04.2009
Under
Код:
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
add This
Код:
public OnPlayerRequestSpawn(playerid)
{
if (GetPlayerSkin(playerid) == 21) // <----- Change That To Your Skins id
{
if (!IsPlayerAdmin(playerid))
{
GameTextForPlayer(playerid, "~r~Only for admins!", 2000, 3);
Kick(Playerid);
return 0;//Stop spawning
}
}
return 1;
}
This Should Work
Re: Please Help me with a Skin -
Klutty - 11.04.2009
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if (GetPlayerSkin(playerid) == 21) // <-Change to your skin id
{
if (!IsPlayerAdmin(playerid))
{
GameTextForPlayer(playerid, "~r~Only for admins!", 2000, 3);
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
return 0;
}
return 1;
}
This is better. Forces the player to class selection instead of a kick.