08.06.2014, 08:11
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:
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.");