04.10.2015, 00:33
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
SetPlayerPos(playerid, 768.1497,-29.3624,1000.5859);
SetPlayerFacingAngle(playerid, 180.000);
SetPlayerInterior(playerid,6);
SetPlayerColor(playerid, 0x9f9f9f);
// ApplyAnimation(playerid, "GANGS", "leanIDLE", 4.1, 1, 1, 1, 0, 1, 1);
}
if( gDMRotation[playerid] ) //if he enables it
{
JoinRandomRotation(playerid);
SetTimerEx("Joinspawnprotection", 3000, false, "i", playerid);
}
else
{
SetPlayerPos(playerid, 774.1058, -49.5124, 1000.5859);
SetPlayerFacingAngle(playerid, 359.2367);
SetPlayerInterior(playerid,6);
SetPlayerColor(playerid, 0x9f9f9f);
}
return 1;
}