dm script how to create ??? - 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: dm script how to create ??? (
/showthread.php?tid=185674)
dm script how to create ??? -
RobShakur - 25.10.2010
hello together,
I have a question how do I create a so-called dm script, so that if a player dies he comes back immediately in the dm arena. and which one the arena can only with / EXIT
please help me ... =(
thanks in advance
Re: dm script how to create ??? -
Jochemd - 25.10.2010
Since you didn't really say what you want I can only say to set a variable when he enters it and when he types /exit, server checks if variable is 1. If not, let nothing happen.
Re: dm script how to create ??? -
OldDirtyBastard - 25.10.2010
try this video buddy, i hope it helps you:
and EXIT command:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/exit", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 2633.3203,2349.7061,10.6719);
return 1;
}
Re: dm script how to create ??? -
Rafa - 25.10.2010
ohh guys and i have question like this
if player is in interior 0 ( outside ) so how to make command /exit and the player leave that area...
if is not in the area and when he tupe /exit to telling him "you are not in the area" ... xD
Thanks guys !
Re: dm script how to create ??? -
Jochemd - 25.10.2010
You're way to unclear, sorry
Re: dm script how to create ??? -
olabv - 15.12.2010
try: else or sumthin
Re: dm script how to create ??? -
[BFT]eagles22 - 15.12.2010
You are too unclear but i am assuming that it would be something like if the player's coordinates are not equal to area coordinates then return SendClientMessage(playerid, color, "You are not in an interior");
Re: dm script how to create ??? -
Haydz - 15.12.2010
Quote:
Originally Posted by OldDirtyBastard
try this video buddy, i hope it helps you:
and EXIT command:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/exit", cmdtext, true) == 0) { SetPlayerPos(playerid, 2633.3203,2349.7061,10.6719); return 1; }
|
You missed a bracket.
Re: dm script how to create ??? -
<Weponz> - 16.12.2010
Have a area where they can leave and goto other arenas,Use that position for the /exit and use IsPlayerInArena == true; under the arena commands(teleports) and when they /exit use IsPlayerInArena == false etc etc to determine if they have used the arena command yet then u can just use else SendClientMessage, 0x0, "Your not in any arenas to exit!");
Use
new bool IsPlayerInArena[MAX_PLAYERS];
Should work
Hope it helps