02.07.2011, 01:29
Just add a extra variable at the top of the command
Hope you kinda get what I mean.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/v", true))
{
if(DMVARIABLE[playerid] == 1) return SendClientMessage(playerid, 0xDEEE20FF, "You cannot use this command in a deathmatch");
return 1;
}
return 0;
}