Command for people inside that area
#1



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 .
Reply
#2

pawn Код:
if(!strcmp(cmdtext, "/ls", true) && IsPlayerInZone[playerid] == 1)
    return SendClientMessage( playerid, 0xFF0000FF, "EROARE: {FFFFFF}You can not get out of this area !" );
Reply
#3

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)