SA-MP Forums Archive
[Help]How to Make 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)
+--- Thread: [Help]How to Make minigame (/showthread.php?tid=300623)



[Help]How to Make minigame - [nfs]Tokyo - 01.12.2011

Can any one show me a script of minigame like /dm1 to enter and /leavedm to leave and any player can`t tele to any another teleport


Re: [Help]How to Make minigame - WLSF - 01.12.2011

Example...
pawn Код:
new bool:ssdm[MAX_PLAYERS];

if(!strcmp(cmdtext,"/dm1", true))
{
    ssdm[playerid] = true;
    //SetPlayerPos(playerid, X, Y, Z); The pos X Y Z you want to teleport the player...
    return true;
}
if(!strcmp(cmdtext,"/leavedm", true))
{
    ssdm[playerid] = false;
    //SetPlayerPos(playerid, X, Y, Z); Pos X Y Z to exit minigame...
    return true;
}