dm zone help +rep
#3

pawn Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

//>> Top of your Script;
new Deathmatch[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    Deathmatch[playerid] = 0; //>> Remove player from the DM Minigames when Reconnect
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    Deathmatch[playerid] = 0; //>> Remove player from the DM Minigames after Disconnect
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    Deathmatch[playerid] = 0; //>> when you death u will be automatically remove from the Match!
    return 1;
}

//how to disable cmd ? example here;
CMD:hahaha(playerid, params[])
{
    if(Deathmatch[playerid]) return SendClientMessage(playerid, -1, "You cant use this cmd while u in DM"); //put this to all cmd u want to disable
    //Your other code
    return 1;
}
try . .
Reply


Messages In This Thread
dm zone help +rep - by NuLIO - 30.07.2012, 21:26
Re: dm zone help +rep - by CoDeZ - 30.07.2012, 21:32
Re: dm zone help +rep - by Devilxz97 - 30.07.2012, 21:37
Re: dm zone help +rep - by NuLIO - 31.07.2012, 00:51
Re: dm zone help +rep - by [MM]RoXoR[FS] - 31.07.2012, 03:49
Re: dm zone help +rep - by NuLIO - 31.07.2012, 05:12
Re: dm zone help +rep - by Devilxz97 - 31.07.2012, 06:06

Forum Jump:


Users browsing this thread: 1 Guest(s)