• can someone help me how to start this confused
    5 replies, posted
so im trying to make it where when you are mayor when you do /broadcast a text popups on your screen just like /rp_tellall or admintellall
What have you tried so far?
function chatCommand( ply, text, public )if (string.sub(text, 1, 4) == "/broadcast") then--if the first 4 letters are /die, kill him          draw.SimpleText( "BroadCast", "DermaDefault", 50, 50, Color( 200, 200, 200, 200 ) )          return(false) --Hides the "/die" from chatendend   hook.Add( "PlayerSay", "chatCommand", chatCommand );
What you're trying to do requires more hooks and networking. If this is your first script maybe you should stick to one concept at a time. Try making it just print in chat for everyone instead of showing on the screen.
nah i did plenty of addons, police armory, bank robbery, atm doing jail food, Health regens and all of that f4 menu
What.... Come on... Just use Player/PrintMessage with HUD_PRINTCENTER this is such an easy module to make.
Sorry, you need to Log In to post a reply to this thread.