Command for people inside that area - 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: Command for people inside that area (
/showthread.php?tid=519922)
Command for people inside that area -
[Cali]ChrOnic_T - 16.06.2014
OKAY LOOK This really annoys me , My admins keep telling me about DM abuse. EXAMPLE:
Player types /Dm3 Then /LS back to los santos and kills everybody with Dm3 weapons -_-
so I made a block and putted
IsPlayerInZone[playerid] = 0; on each /DM cmd.
But when I type ANY COMMAND it says the error message
pawn Код:
EROARE: {FFFFFF}You can not get out of this area !
! I MEAN LIKE ANY COMMAND even a command that doesnt exist like /asadadsad [/B]
pawn Код:
if( IsPlayerInZone[ playerid ] == 1 && strcmp(cmdtext, "/ls", true) != 0 )
return SendClientMessage( playerid, 0xFF0000FF, "EROARE: {FFFFFF}You can not get out of this area !" );
What needs to be fixxed?. & Yes, its under OnPlayerCommandText .
Re: Command for people inside that area -
RenovanZ - 16.06.2014
pawn Код:
if(!strcmp(cmdtext, "/ls", true) && IsPlayerInZone[playerid] == 1)
return SendClientMessage( playerid, 0xFF0000FF, "EROARE: {FFFFFF}You can not get out of this area !" );
Re: Command for people inside that area -
Sandiel - 16.06.2014
When people use the command (/ls), check if they are in the are of DM3.
If so, remove their weapons so they cannot use them to DM anyone anywhere.
Although, if you wanna get fancy with it, when a player uses /DM3 and he is not in the DM3 area, save his weapons in variables stored in his account, when he leaves the DM3 are, delete his weapons, give him back his old weapons. Solved, you do not need to block or restrict anything for any command really.
Re: Command for people inside that area -
HeLiOn_PrImE - 16.06.2014
Why not enable god mode for all players, but automatically disarm them?
If anyone opens a weapon menu, or enters a dm zone, the god mode would be removed. Less chance of incidents.