make gametextforplayer smaller?
#7

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
C for Server Commands Textdraw,

Try This :-

New Variable,
Код:
new Text:CForSCMDs;
Forward and Public Callback for CForSCMDs Textdraw Hide For Player,
pawn Код:
forward HCForSCMDs(playerid);
public HCForSCMDs(playerid)
{
    TextDrawHideForPlayer(playerid, CForSCMDs);
}
On OnPlayerCommandPerformed Callback,
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        CForSCMDs = TextDrawCreate(490.000000, 0.000000, "Type /c for Server Commands.");
        return SetTimerEx("HCForSCMDs", 3000, 0, "d", playerid);
    }
    return 1;
}
Thanks brother I will test this later. And I also want to know if it is possible also to show TextDraw if I do /unmute like the one you made? (example below)

So let say if I do /unmute then hit enter it should show in TextDraw "/unmute <playerid/name>" and it will disappear after 3 seconds.

if this is possible then I will do the rest of the commands


Код:
COMMAND:unmute(playerid,params[])
{
	if(PlayerInfo[playerid][AdminLevel] >= LEVEL_unmute)
	{
 		new player;
		if(sscanf(params, "r", player))
		{
			SendClientMessage(playerid,RED,"Usage: /unmute <playerid/name>");
		    return 1;
		}

		if(PlayerInfo[player][Muted] == false)
		{
			SendClientMessage(playerid,RED,"This player is not muted");
		    return 1;
		}
		if(IsPlayerConnected(player) && player != INVALID_PLAYER_ID && player != playerid)
		{
			PlayerInfo[player][Muted] = false;
			KillTimer(PlayerInfo[player][MuteTimer]);
			SendClientMessage(player, GREEN, "You have been unmuted!");
			SendClientMessage(playerid, RED, "Player has been unmuted.");
		}
		else
		{
            SendClientMessage(playerid, RED, "Player isnґt connected or invalid!");
		}
	}
	else
	{
		SendClientMessage(playerid, RED, NO_PERM);
	}
	return 1;
}
Reply


Messages In This Thread
make gametextforplayer smaller? - by kbalor - 10.11.2013, 04:17
Re: make gametextforplayer smaller? - by SAMProductions - 10.11.2013, 04:20
Re: make gametextforplayer smaller? - by kbalor - 10.11.2013, 04:25
Re: make gametextforplayer smaller? - by SAMProductions - 10.11.2013, 04:30
Re: make gametextforplayer smaller? - by kbalor - 10.11.2013, 04:36
Re: make gametextforplayer smaller? - by SAMProductions - 10.11.2013, 04:40
Re: make gametextforplayer smaller? - by kbalor - 10.11.2013, 04:48
Re: make gametextforplayer smaller? - by SAMProductions - 10.11.2013, 04:53
Re: make gametextforplayer smaller? - by kbalor - 10.11.2013, 04:56
Re: make gametextforplayer smaller? - by Zex Tan - 10.11.2013, 04:57

Forum Jump:


Users browsing this thread: 1 Guest(s)