Please help me with this
#1

hi guys

can you script a little example for me please.

when people are in a dm they can tele to places. can you tell me how i can make it so when they try to tele to places it says you cannot tele when you are in a dm type /leavedm to leave it. So when they type /leavedm it respawns them and disarms them.

Thanks
Reply
#2

pawn Код:
// when player enters deathmatch
SetPVarInt(playerid, "IsInDeathmatch", 1);

// Whatever command players can not execute when in dm:
if(GetPVarInt(playerid, "IsInDeathmatch"))
    return SendClientMessage(playerid, red, "Not allowed!");

// When player exits deathmatch
DeletePVar(playerid, "IsInDeathmatch");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)