dmzone cmd - 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: dmzone cmd (
/showthread.php?tid=218921)
dmzone cmd -
hadzx - 31.01.2011
how do i make this because i get a warning im trying 2 make it so when you type /leavedm if your in the deathmatch it teles u out and if your not in a dm it says your not in a deathmatch
heres code
Код:
if (strcmp(cmdtext, "/leavedm", true)) return SendClientMessage(playerid, 0x33CCFFAA, "Your Not In A Deathmatch!");
{
SetPlayerPos(playerid, 2000.3974,1526.5104,14.6171);
SendClientMessage(playerid, 0x33CCFFAA, "You Left The Deathmatch");
busy[playerid] = 0;
return 1;
}
and the warning/error
Код:
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\gamemodes\lvpg.pwn(497) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
thanks
Re: dmzone cmd -
Steven Paul - 31.01.2011
try this
pawn Код:
if(strcmp(cmdtext, "/leavedm", true))
{
SetPlayerPos(playerid, 2000.3974,1526.5104,14.6171);
SendClientMessage(playerid, 0x33CCFFAA, "You Left The Deathmatch");
busy[playerid] = 0;
return 1;
}
Re: dmzone cmd -
hadzx - 31.01.2011
Quote:
Originally Posted by Steven Paul
try this
pawn Код:
if(strcmp(cmdtext, "/leavedm", true)) { SetPlayerPos(playerid, 2000.3974,1526.5104,14.6171); SendClientMessage(playerid, 0x33CCFFAA, "You Left The Deathmatch"); busy[playerid] = 0; return 1; }
|
yeah but if their not in the dm they can just teleport and i dont want them 2 be-able to because its a dm server they could go in anywhere and tele
Re: dmzone cmd -
hadzx - 31.01.2011
nvm remembered the code