Some commands

Started by =RK=MarineForce, May 12, 2018, 08:46 AM

Previous topic - Next topic

Mohamed Boubekri

Quote from: =RK=MarineForce on May 13, 2018, 09:36 AMUntested

else if ( cmd == "marker" )
{
CreateMarker(player.UniqueWorld, Vector( player.Pos.X, player.Pos.Y,  ), 5,RGB(209, 209, 209),0);
}

Example by Wiki

PlaySound( world, sound, pos )

PlaySound(player.UniqueWorld, 3, player.Pos.X, player.Pos.Y );

its make by me if u got any bug report me untested

new cmd example by wiki.

PlaySoundForWorld(WorldID,SoundID) Example by wiki

I make it at 30 minutes. more bugs in this cmd i think.

Untested.

else if ( cmd == "soundpl" )
{
if(!text);
{
local World = FindWorld(text);
local Sound = FindSoundID();
PlaySoundForWorld(World.ID, text.tointeger());
}
else MessagePlayer(" " + cmd + " World ID SounID ", player);
}

if i learn phyton i know all things?
Use This:
else if ( cmd == "soundpl" )
{
if(!text) MessagePlayer(" " + cmd + " World ID SounID ", player);
else {
PlaySoundForWorld(player.World, text.tointeger());
}
}
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

=RK=MarineForce

#16

Mohamed

PlaySoundForWorld(player.World, text.tointeger());
its playSound on Player.World ?

=RK=MarineForce

can u tell me

what is   if ( IsNum( plr ) ) and return false;