21.02.2016, 12:22
Look Here is OnPlayerRequestClass
aand here for onplayerconnect
There is no errors right?
Код:
public OnPlayerRequestClass(playerid,classid) { if(classid == 3 && !IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_RED, "This skin is only for admins!"); return 0; } return 1; }
Код:
public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s has joined the server. Welcome!",pName); SendClientMessageToAll(0xFFFFFFAA,string); return 1; }