Squirrel/Client/Functions/Messages/BigMessage
From Liberty Unleashed Wiki
(Difference between revisions)
(→--Kupka (talk) 14:10, 3 September 2017 (BST)Headline text) |
|||
Line 18: | Line 18: | ||
The call [[Squirrel/Client/Events/Player/onClientCommand|onClientCommand(Client side)]] was used in in this example. More info about this in the corresponding page. | The call [[Squirrel/Client/Events/Player/onClientCommand|onClientCommand(Client side)]] was used in in this example. More info about this in the corresponding page. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 18:34, 5 September 2017
[edit] Example
function onClientCommand ( szCommand, szParams ) { if ( cmd == "bigmsg" ) { if ( szParams ) BigMessage ( "THIS IS GONNA BE HUUUUUUGE", 5000, 1 ); } return 1; }
This command will show a HUGE(big) message, with type 0, lasting 5 seconds, showing the specified text, for the command user.
[edit] Notes
The call onClientCommand(Client side) was used in in this example. More info about this in the corresponding page.