House Spawn
#1

#if SPAWN_IN_HOUSE == true
if(GetPVarInt(playerid, "FirstSpawn") == 0)
{
SetTimerEx("HouseSpawning", HSPAWN_TIMER_RATE, true, "i", playerid); // Increase timer rate if your gamemodes OnPlayerSpawn gets called after the timer has ended
}
#endif

i want to make the person spawn in their house at all times instead of just on their "first spawn" can someone help me?
Reply
#2

Just remove the "if(GetPVarInt(playerid, "FirstSpawn") == 0)" i guess, so it would be;
pawn Код:
#if SPAWN_IN_HOUSE == true
SetTimerEx("HouseSpawning", HSPAWN_TIMER_RATE, true, "i", playerid); // Increase timer rate if your gamemodes OnPlayerSpawn gets called after the timer has ended
#endif
If that doesn't work, try to find if the "SPAWN_IN_HOUSE" is set to "false" somewhere, and replace it with "true".
Reply
#3

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Just remove the "if(GetPVarInt(playerid, "FirstSpawn") == 0)" i guess, so it would be;
pawn Код:
#if SPAWN_IN_HOUSE == true
SetTimerEx("HouseSpawning", HSPAWN_TIMER_RATE, true, "i", playerid); // Increase timer rate if your gamemodes OnPlayerSpawn gets called after the timer has ended
#endif
If that doesn't work, try to find if the "SPAWN_IN_HOUSE" is set to "false" somewhere, and replace it with "true".
Thanks for your attempt but it didn't work : / i tried toggling with the HSPAW_TIMER_RATE but thats not doing anygood, any chance that you could help me with creating a new spawn in house code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)