Scripting/Squirrel/Functions/Player.UniqueWorld

From Vice City Multiplayer
Revision as of 19:51, 17 October 2014 by Ysc3839 (talk | contribs) (Created page with "This will return a special world ID for a player == Syntax == <pre>Player.UniqueWorld</pre> == Example == <source lang=squirrel> function OnPlayerCommand( player,cmd , text ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This will return a special world ID for a player

Syntax

Player.UniqueWorld

Example

function OnPlayerCommand( player,cmd , text )
     if ( cmd == "sound" )
     {
     PlaySound( player.UniqueWorld , 30 , player.Pos );
     }