* BlueGames CMD ...
PHP код:
if(strcmp(cmd, "/me", true)==0){
if(PlayerTemp[playerid][muted]==0){
new tmp[256];
tmp = strrest(cmdtext,idx);
if(!strlen(tmp)){
SendClientUsage(playerid, cmd, "[msg]");
return 1;
}
if(FindIP(tmp))
{
KickReas("[SERVER]",playerid,"Attempting to advertise IP's!");
return 1;
}
else{
new mestr[256],sender[MAX_STRING];
if(PlayerTemp[playerid][hname]==1) myStrcpy(sender,"Stranger");
else myStrcpy(sender,NameEx(playerid));
format(mestr,sizeof(mestr),"%s %s",sender,tmp);
SetPlayerChatBubble(playerid, mestr, COLOR_ME2, 100.0, 10000);
NearMessage(playerid,mestr,COLOR_ME2);
return 1;
}
}
else
{
SendClientError(playerid,"You have been muted");
}
return 1;
}
/do CMD ...
PHP код:
if(strcmp(cmd, "/do", true)==0){
if(PlayerTemp[playerid][muted]==0){
new tmp[256];
tmp = strrest(cmdtext,idx);
if(!strlen(tmp)){
SendClientUsage(playerid, cmd, "[msg]");
return 1;
}
if(FindIP(tmp))
{
KickReas("[SERVER]",playerid,"Attempting to advertise IP's!");
return 1;
}
else{
new mestr[256],sender[MAX_STRING];
if(PlayerTemp[playerid][hname]==1) myStrcpy(sender,"Stranger");
else myStrcpy(sender,NameEx(playerid));
format(mestr,sizeof(mestr),"((%s)) %s",sender,tmp);
SetPlayerChatBubble(playerid, mestr, COLOR_ME2, 100.0, 10000);
NearMessage(playerid,mestr,COLOR_ME2);
return 1;
}
}
else
{
SendClientError(playerid,"You have been muted");
}
return 1;
}
Next time use wiki or something.