Completely Remove Player Class
#1

I was wondering, can you remove player class selection not avoid it with timers or spawnplayer() but remove it completely
Reply
#2

Anyone
Reply
#3

It cant be removed, doesn't SpawnPlayer work under OnPlayerRequestClass after you set a class ?
Reply
#4

I think what you wanna do is return 0; under the OnPlayerRequestClass callback, from what I understood, hope this helps.
Reply
#5

pawn Код:
public OnPlayerRequestClass(playerid)
{
SpawnPlayer(playerid);
return 1;
}
if it don't work add a timer also.
Reply
#6

I was just wondering if it can be removed because i have a register dialog and after that there are dialogs with questions age,gender etc... And when the player answers all of the questions it won't let him spawn so is there a way to delay the class selection so it would let the player spawn!
Reply
#7

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
I think what you wanna do is return 0; under the OnPlayerRequestClass callback, from what I understood, hope this helps.
No that doesn't work i tried it!
Reply
#8

like Anak Said
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetSpawnInfo(playerid,NO_TEAM,299,1958.3783,1343.1572,15.3746,270,0,0,0,0,0,0);
    
SpawnPlayer(playerid);
    return 
1;

just tested it and it work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)