14.06.2013, 13:05
pawn Код:
#define InterpolateCameraLookAt SetPlayerCameraLookAt
#define InterpolateCameraPost SetPlayerCameraPos
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2004.7404,1913.8379,40.3516);
SetPlayerFacingAngle(playerid,264.7556);
SetPlayerTime(playerid, 0,0);
InterpolateCameraPos(playerid,2013.6698,1913.9120,35.0304,2013.6698,1913.9120,35.0304+100,10000);
InterpolateCameraLookAt(playerid,2004.7404,1913.8379,40.3516,2004.7404,1913.8379,40.3516+50,10000);
return 1;
}
//---[Server Opening]---//
public OnPlayerConnect(playerid)
{
new str[78], pnome[MAX_PLAYER_NAME];
GetPlayerName(playerid, pnome, sizeof(pnome));
format(str, sizeof(str), "{1E90FF}%s {006400}(ID:%d) {B22222}Connected To The Server.", pnome, playerid);
SendClientMessageToAll(-1, str);
TextDrawShowForPlayer(playerid, Textdraw1);
PlayAudioStreamForPlayer(playerid, "http://rapha3l.comyr.com/eldm/songs/intro.mp3");
return 1;
}
//---[Spawn]---//
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid,5000);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,31,9999);
GivePlayerWeapon(playerid,1,0);
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
StopAudioStreamForPlayer(playerid);
return 1;
}