how to disable class select on connect
#1

well i am making a role play server and i dont want the player to see the request class section
actually what i want is that they get to register and as soon as they register they should spawn.
please help
Reply
#2

Put this After you register/login :-
Код:
SpawnPlayer(playerid);
Reply
#3

Quote:
Originally Posted by Thour57
Посмотреть сообщение
Put this After you register/login :-
Код:
SpawnPlayer(playerid);
i did it but it was not working so i removed that part
or i will try once again(possibly i must have forgotten to compile and was running the older one)
Reply
#4

dude, Show me your OnDialogResponse.
Reply
#5

Quote:
Originally Posted by Thour57
Посмотреть сообщение
dude, Show me your OnDialogResponse.
here it is
Код:
case dialog_register :
 		{
			new pname[MAX_PLAYER_NAME];
			new name[MAX_PLAYER_NAME + 4];
			GetPlayerName(playerid,pname,sizeof(name));
			format(name,sizeof(name),"%s.txt",pname);
			fcreate(name);
 		    SpawnPlayer(playerid);
		}
Reply
#6

whole Please.
Reply
#7

Quote:
Originally Posted by Thour57
Посмотреть сообщение
whole Please.
it is the whole part i have not made anything else yet in the dialog response part
Reply
#8

pawn Код:
//this will hide everything... money... health etc... etc.....
TogglePlayerSpectating(playerid, 1); // enable && under onplayerconnect would be good

TogglePlayerSpectating(playerid, 0); //disable... u can add this when they log in or register
SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0,0, 0, 0, 0 ); //replace th variables
SpawnPlayer(playerid);
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)