22.08.2015, 11:13
I have a problem with death.. when i spawn within my server (for the first time) it sends the client a message saying "LS TRAIN:" etc. but this also happens when a player dies... E.G using /kill or even just being killed with a firearm..
My "OnPlayerSpawn"
MY OnPlayerDeath is not edited as of yet.
My "OnPlayerSpawn"
Код:
public OnPlayerSpawn(playerid) { if(PlayerInfo[playerid][pPos][0] == 0 && PlayerInfo[playerid][pPos][1] == 0) { SetPlayerPos(playerid, 802.4837,-1348.5842,-0.5078); SetPlayerFacingAngle(playerid, 317.1196); PlayAudioStreamForPlayer(playerid, "http://www.fromtexttospeech.com/texttospeech_output_files/0477346001439163656/7585780.mp3"); for(new i; i < 25; i++) { SendClientMessage(playerid, -1, ""); } SendClientMessage(playerid, COLOR_ORANGE, "LS TRAIN: This is the last stop, enjoy your stay in Los Santos!"); return 1; } else { SetPlayerPos(playerid, PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2]); } StopAudioStreamForPlayer(playerid); return 1; }