idk
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Mahmoud Tornado on May 11, 2018, 07:16 PMQuote from: =RK=MarineForce on May 11, 2018, 06:23 PMHEY Man i have to fixed this goto cmdAs you don't have GetPlayer Function.else if ( cmd == "goto" )
{
if ( !text ) MessagePlayer( "[#ff0000]Syntax - /" + cmd + " <Player Nick/ID>", player );
else {
local plr = FindPlayer( text );
if ( !plr ) MessagePlayer( "[#ff0000]Error - Unknown Player..", player );
else if ( plr.ID == player.ID ) MessagePlayer( "[#ff0000]Error - You can't teleport to yourself!", player );
else if ( !plr.IsSpawned ) MessagePlayer( "[#ff0000]Error - The Player hasn't spawned yet..", player );
else {
NewTimer( "goto", 3000, 1, player.ID, plr.ID );
Announce( "Teleporting...", player , 0 );
player.IsFrozen = true;
MessagePlayer( "[#ffbb00]You Will Be Teleported In 3 Seconds To " + plr.Name + ". ", player);
}
}
}
Change thisLocal plr = GetPlayer(text);
toLocal plr = FindPlayer ( text );
its work for me when i fixed it
FindPlayer is an normal function.
The both work but you don't have GetPlayer Function.