30.07.2012, 21:37
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;
}