/showtext
#1

Hello, im kinda stuck on my command i am wishing to make, this command is for admin use only and when they type /showtext [playerid] all the server information pops up on the specific player's screen!

My command:

Код:
CMD:showtext(playerid, params[])
{
if(pInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED,"[ERROR]: "WHITE"You are not authorized to use this command.");
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: "WHITE"/ShowText [playerid]");
if(IsLoggedIn[giveplayerid] == 0) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: "WHITE"Player isn't logged in.");
Reply
#2

pawn Код:
CMD:showtext(playerid, params[])
{
    new giveplayerid;
    if(pInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED,"[ERROR]: "WHITE"You are not authorized to use this command.");
    if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: "WHITE"/ShowText [playerid]");
    if(IsLoggedIn[giveplayerid] == 0) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: "WHITE"Player isn't logged in.");
    GameTextForPlayer(giveplayerid, "Put your message here", 3000, 4); // will appear for 3000 ms
    return 1;
}
Reply
#3

Quote:
Originally Posted by MrCallum
Посмотреть сообщение
...all the server information pops up on the specific player's screen!
What server information are we talking about?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)