OnClientScriptData: Difference between revisions
Jump to navigation
Jump to search

This wiki is using an old backup from 2020
Some information may be old/missing
Kennedyarz (talk | contribs) (Created page with "function onClientScriptData(player) Example: ::Python <- GUIButton(VectorScreen(400,200), VectorScreen(200, 22), Colour(75,75,75), "Python (6) Cost(6)", GUI_FLAG_BORDER |...") |
(No difference)
|
Revision as of 13:42, 14 March 2017
function onClientScriptData(player)
Example:
- Python <- GUIButton(VectorScreen(400,200), VectorScreen(200, 22), Colour(75,75,75), "Python (6) Cost(6)", GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);
function GUI::ElementClick(element, mouseX, mouseY) { if (element == Python) { local Datos = Stream(); Datos.WriteString("python"); Server.SendData(Datos); }
function onClientScriptData(player) { local string = Stream.ReadString(); if(string=="python") { player.GiveWeapon(18,1000); MessagePlayer("You Have Now Python",player) } }