if(!strcmp(cmdtext, \"/asay\", true)) { if(pInfo[playerid][Admin] >= 1) { new string[128],text[123]; format(string, sizeof(string), \"{f71616}((ADMIN :{a6e819} %s {f71616}))\",text); SendPlayerMessageToAll(playerid, string); return 1; } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy Admin...\"); } return 1;}
if(!strcmp(cmdtext, \"/b\", true)) { new string[200],text[123]; { format(string,sizeof(string),\"%s OOC: %s\",pName(playerid),text); new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerInRangeOfPoint(i,5.0,x,y,z)) { SendClientMessage(i,COLOR_WHITE,string); } else if(IsPlayerInRangeOfPoint(i,10.0,x,y,z)) { SendClientMessage(i,COLOR_GREY,string); } } return 1;}
#include <sscanf2>
if(!strcmp(cmdtext, \"/b\", true)){new string[128],text[128];{if(sscanf(cmdtext,\"s[128]\",text)) return SendClientMessage(playerid,-1, \"{FF0000}Használat:{FFFFFF} /b < Üzenet >\" );format(string,sizeof(string),\"%s OOC: %s\",pName(playerid),text);new Float:x,Float:y,Float:z;GetPlayerPos(playerid,x,y,z);for(new i = 0; i < GetMaxPlayers(); i++){if(!IsPlayerConnected(i)) continue;if(IsPlayerInRangeOfPoint(i,5.0,x,y,z)) { SendClientMessage(i,COLOR_WHITE,string); }else if(IsPlayerInRangeOfPoint(i,10.0,x,y,z)) { SendClientMessage(i,COLOR_GREY,string); }} }return 1;}