17.08.2011, 02:12
pawn Код:
if(strcmp("/dm", cmdtext, true, 10) == 0)
{
indm[playerid] = 1;
return 1;
}
if(strcmp("/exitdm", cmdtext, true, 10) == 0)
{
indm[playerid] = 0;
return 1;
}
if(strcmp("/test", cmdtext, true, 10) == 0)
{
if(indm[playerid] == 1)
{
SendClientMessage(playerid, red, "u're in dm");
} else {
SendClientMessage(playerid, yellow, "u aren't in dm");
return 1;
}
}