11.04.2009, 12:12
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.
public OnPlayerRequestSpawn(playerid) { return 1; }
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; }
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;
}