Minigame - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Minigame (
/showthread.php?tid=162767)
Minigame -
Dime - 24.07.2010
How i make when player tele in my minigame ,to he can go out only if he die or type /kill
Re: Minigame -
VictorMartinez - 24.07.2010
Код:
new IsPlayerInMiniGame[MAX_PLAYERS];
OnPlayerSpawn(playerid)
{
if(IsPlayerInMiniGame[playerid] == 1)
{
SetPlayerPos(playerid, x,y,z);
}
}
// when player does /kill
{
IsPlayerInMiniGame[playerid] = 0;
}
//when a player joins the minigame
{
IsPlayerInMiniGame[playerid] = 1;
}