04.03.2017, 13:37
Here is my OnPlayerSpawn:
It doesnt work, i spawn successfuly but it wont work... I dont get the message and it wont change my skin/color, any of this.
Код:
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); SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1); SetPlayerColor(playerid, -1); SetPlayerHealth(playerid, 100.0); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); SetCameraBehindPlayer(playerid); StopAudioStreamForPlayer(playerid); return 1; }