Delete textdraw << >> Spawn
#1

hello guys, someone know how to delete this ?

Reply
#2

Use TogglePlayerSpectating



Under OnPlayerConnect

TogglePlayerSpectating(playerid, 1);





Under OnPlayerSpawn

TogglePlayerSpectating(playerid, 0);
Reply
#3

Not work.
Reply
#4

Spawn the player once they connect, force them into spectating mode and from there on do your thing.
Reply
#5

Quote:
Originally Posted by Sime30
Посмотреть сообщение
Use TogglePlayerSpectating



Under OnPlayerConnect

TogglePlayerSpectating(playerid, 1);





Under OnPlayerSpawn

TogglePlayerSpectating(playerid, 0);
This is the only way to disable that buttons and its working perfectly
Reply
#6

ok. then i will try again.
Reply
#7

use SetSpawnInfo on OnPlayerRequestClass to if player connnect and want to go on Request Class Quickly spawn !
if use F4 For Go Will be spawn.
use wiki samp for more info about SetSpawnInfo !
Reply
#8

Quote:
Originally Posted by M0HAMMAD
Посмотреть сообщение
use SetSpawnInfo on OnPlayerRequestClass to if player connnect and want to go on Request Class Quickly spawn !
if use F4 For Go Will be spawn.
use wiki samp for more info about SetSpawnInfo !
This one else should work SpawnPlayer under OnRequestClass
Reply
#9

public OnPlayerRequestClass(playerid, classid)
{
SpawnPlayer(playerid);//Here skip this buttons
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
SetPlayerSkin(playerid,random(305));//Here when someone spawn, it will give him random skin from 0 to 305
return 1;
}
Reply
#10

OnPlayerConnect:
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);

OnPlayerRequestClass
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)