Can Someone Give me the code to the /b
#3

Quote:
Originally Posted by yezizhu
public OnPlayerCommandText(playerid,cmdtext[]){
if(!strcmp("/b ",cmdtext,false,3)){
if(cmdtext[3]){
OnPlayerText(playerid,cmdtext[3]);
}else SendClientMessage(playerid,COLOR_YOUWANT,"Usage:/b [text]");
}
return true;
}
return false;
}
Next time use the code command,otherwise it's a mess,so for example

Код:
public OnPlayerCommandText(playerid,cmdtext[]){
  if(!strcmp("/b ",cmdtext,false,3)){
    if(cmdtext[3]){
      OnPlayerText(playerid,cmdtext[3]);
    }else SendClientMessage(playerid,COLOR_YOUWANT,"Usage:/b [text]");
    }
     return true;
  }
  return false;
}
command is [code /code]
add ] this after '[code' and [ before '/code'
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)