GameTextForAdmins +REP
#1

Guys, I need a command that allow RCONs announce a text to all administrato and players won't see the message.
Код:
Admins =>  PlayerInfo[playerid][Level]
Sorry for my bad English
Reply
#2

Loop through the players. Check for an Admin Status. Show the Text.
Reply
#3

i dont know how to loop it, and what should i use? GameTextForPlayer or GameTextForAll
Reply
#4

I don't know your command processor but if you're using ZCMD - IZCMD etc:

PHP код:
#include <a_samp>//
#include <sscanf2>
#include <izcmd>//
CMD:an(playeridparams[])
{
    new 
string[56], text[56]; //
    
if(!IsPlayerAdmin(playerid)) return false;
    if(
sscanf(params"s[56]"text)) return SendClientMessage(playerid, -1"/an [Message]");
    
format(stringsizeof string"%s"text);
    for(new 
0GetPlayerPoolSize(); <= ji++) 
    {
        if(
PlayerInfo[i][Level] >= 1GameTextShowForPlayer(itext60002);
    }
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)