Is it possible to replace 1 with "Yes"?
#1

Is it possible to replace the "1" with "Yes"?
Код:
CMD:showid(playerid, params[])
{
    new Player;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "ERROR: You are not a RCON Admin!");
    else if (sscanf(params, "u", Player)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "[INFO] /showid [Playerid/PartOfName");
    else if (Player == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED2, "[INFO]{FFFFFF}: Invalid ID.");
    else
    {
		new string[125];
		SendClientMessage(Player,COLOR_LIGHTBLUE,"====================================================");
	 	format(string,sizeof(string),"|| Name : %s || || Gun License : %d ||",RemoveUnderScore(playerid),pInfo[playerid][GunLic]);
		SendClientMessage(Player,COLOR_GRAY,string);
	 	if (pInfo[playerid][LSPD] >= 1)
	 	{
	 	    SendClientMessage(Player,COLOR_GRAY,"Organization: Los Santos Police Department");
	 	    SendClientMessage(Player,COLOR_LIGHTBLUE,"====================================================");
		}

    }
    return 1;
}
Thanks in advance.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)