12.07.2012, 13:16
yes its a valid command , and its working
Here
Here
pawn Код:
CMD:pmon(playerid,params[])
{
if(PM_Enabled[playerid]==1) return SendClientMessage(playerid,COLOR_RED,"Your PM is already enabled");
else if (PM_Enabled[playerid]==0)
{
PM_Enabled[playerid]=1;
SendClientMessage(playerid,COLOR_GREEN,"You've enabled your PM");
}
return 1;
}
CMD:pmoff(playerid,params[])
{
if(PM_Enabled[playerid]==0) return SendClientMessage(playerid,COLOR_RED,"Your pm is already off");
else if (PM_Enabled[playerid]==1)
{
PM_Enabled[playerid]=0;
SendClientMessage(playerid,COLOR_GREEN,"You've disabled your pm");
}
return 1;
}