04.08.2016, 15:08
Try this:
PHP код:
CMD:mmafk(playerid,params[])
{
if(PlayerInfo[playerid][MMLevel] >= 1)
{
TogglePlayerControllable(playerid,0);
new string[128];
format(string,sizeof(string),"[MM MEMBER]:%s Is Now Away From The Keyboard! ", pName(playerid) );
SendClientMessageToAll(blue1, string);
SendClientMessage(playerid, green, "Type {FF0000}/bcback {33FF33}When You Back.");
return 1;
}
else return SendClientMessage(playerid,red,"ERROR: You need to be BC Member Rank 1 to use this command");
}
CMD:mmback(playerid,params[])
{
if(PlayerInfo[playerid][MMLevel] >= 1)
{
TogglePlayerControllable(playerid,1);
new string[128];
format(string,sizeof(string),"[MM MEMBER]:%s Now Back! ", pName(playerid) );
SendClientMessageToAll(blue1, string);
return 1;
}
else return SendClientMessage(playerid,red,"ERROR: You need to be MM Member Rank 1 to use this command");
}