22.07.2013, 08:15
Simple. Create a variable like
then when player join the match set variable value to 1.
then when players uses anyother command while in deathmatch. return it to an error
pawn Код:
new InOneHit[MAX_PLAYERS];
pawn Код:
if(!strcmp(cmdtext, "/onehit", true))
{
InOneHit[playerid] = 1;
return 1;
}
pawn Код:
if(InOneHit[playerid] == 1) return SendClientMessage(playerid,0xAA3333AA,"[ERROR]You cant use commands while in a Deathmatch");