20.12.2011, 13:39
PHP Code:
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid, "IsAnimsPreloaded") == 0)
{
ApplyAnimation(playerid, "CRACK", "null", 0.0, 0, 0, 0, 0, 0);
SetPVarInt(playerid, "IsAnimsPreloaded", 1);
}
#if SPAWN_IN_HOUSE == true
if(GetPVarInt(playerid, "FirstSpawn") == 0)
{
SetTimerEx("HouseSpawning", HSPAWN_TIMER_RATE, false, "i", playerid); // Increase timer rate if your gamemodes OnPlayerSpawn gets called after the timer has ended
}
#endif
return 1;