Originally Posted by Rudy_
EDIT: Try this one, again edite
Try this
pawn Код:
if(strcmp("/r",cmdtext,true) == 0) { new text[256]; if(dini_Int(FFile(playerid),"Cop") == 0) return SendClientMessage(playerid,0xFFFFFFFF,"{0b84ff}Error:{ffffff} Sorry, but the command does not exist. {0b84ff}/help {ffffff}or {0b84ff}/helpme{ffffff} if needed."); { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(dini_Int(FFile(i),"Cop") == 1){ text = strrest(cmdtext, idx); if(!strlen(text)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE: /r [TEXT]"); format(string, 256, "{ffec8b}** [Police] Officer %s: %s **", GetName(playerid), text); return SendClientMessage(i, 0x006BFFFF, string); } } } return 1; }
or this
pawn Код:
if(strcmp("/r",cmdtext,true) == 0) { new text[256]; if(dini_Int(FFile(playerid),"Cop") == 0) return SendClientMessage(playerid,0xFFFFFFFF,"{0b84ff}Error:{ffffff} Sorry, but the command does not exist. {0b84ff}/help {ffffff}or {0b84ff}/helpme{ffffff} if needed."); { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(dini_Int(FFile(i),"Cop") == 1){ text = strrest(cmdtext, idx); if(!strlen(text)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE: /r [TEXT]"); format(string, 256, "{ffec8b}** [Police] Officer %s: %s **", GetName(playerid), text); return SendClientMessage(i, 0x006BFFFF, string); } } } return 1; }
|