Posts: 32
Threads: 2
Joined: Sep 2014
Quote:
Originally Posted by LeroyII
Here is the code i use for admin skin but replaced checking is player admin with is player logged in:
pawn Код:
public OnPlayerRequestSpawn(playerid) { if(GetPlayerSkin(playerid) == 163 && (PlayerInfo[playerid][LoggedIn] == 0)) { SendClientMessage(playerid, COLOR_RED, "*YOUR ERROR MESSAGE*"); return 0; } return 1; }
Only thing is where you see 163 (That is skin id) You will have to recreate this and put all of yours skins.. Sorry i don't know is there another way. Replace *YOUR ERROR MESSAGE* whit error message you want to be when player is not logged in and press key for spawn.. Hope i helped. Btw it is tested and it works
|
Change the skin id (163)to your admin skin so admins can only choose that skin .