OnPlayerSpawn is not called
#1

Here is my OnPlayerSpawn:

Код:
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;
}
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.
Reply


Messages In This Thread
OnPlayerSpawn is not called - by Saddin - 04.03.2017, 13:37
Re: OnPlayerSpawn is not called - by Unrea1 - 04.03.2017, 14:03
Re: OnPlayerSpawn is not called - by Saddin - 04.03.2017, 14:06
Re: OnPlayerSpawn is not called - by Yuri8 - 04.03.2017, 14:12
Re: OnPlayerSpawn is not called - by Saddin - 04.03.2017, 14:18
Re: OnPlayerSpawn is not called - by Toroi - 04.03.2017, 14:21
Re: OnPlayerSpawn is not called - by Saddin - 04.03.2017, 14:26
Re: OnPlayerSpawn is not called - by SyS - 04.03.2017, 14:29
Re: OnPlayerSpawn is not called - by Saddin - 04.03.2017, 14:37
Re: OnPlayerSpawn is not called - by NaS - 04.03.2017, 14:42
Re: OnPlayerSpawn is not called - by Saddin - 04.03.2017, 14:43
Re: OnPlayerSpawn is not called - by SyS - 04.03.2017, 14:45
Re: OnPlayerSpawn is not called - by Saddin - 04.03.2017, 14:47
Re: OnPlayerSpawn is not called - by NaS - 04.03.2017, 14:48
Re: OnPlayerSpawn is not called - by Toroi - 04.03.2017, 14:57
Re: OnPlayerSpawn is not called - by Saddin - 04.03.2017, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)