21.02.2016, 12:16
Hello Why i cant spawn and i cant select class/skin
Can some one help me plesae?
Can some one help me plesae?
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; }
public OnPlayerSpawn(playerid) { new PlayerName[MAX_PLAYER_NAME], string[40]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, sizeof(string), "%s has spawned successfully.", PlayerName); SendClientMessageToAll(0xFFFFFFFF, string); return 1; }