House Spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: House Spawn (
/showthread.php?tid=523300)
House Spawn -
Timeless - 01.07.2014
#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?
Re: House Spawn -
Kyance - 01.07.2014
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".
Re: House Spawn -
Timeless - 01.07.2014
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?