bypass OnPlayerRequestClass()
#1

Yes, I know... many people think, that it's a shit idea to force OnPlayerRequestClass right after connection to server. They solved this problem in some ways, but none of them satisfies my needs. The thing is that I don't want to add any code into OnPlayerRequestClass() since this callback shouldn't be called at all! How can I completely bypass it? Thanks
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
Something like that?
Reply
#3

https://sampwiki.blast.hk/wiki/OnPlayerConnect
Check it mate and take your answer!!!
Reply
#4

Quote:
Originally Posted by PakistaniBaba
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/OnPlayerConnect
Check it mate and take your answer!!!
Found nothing useful. Besides the function SendClientMessageToAll()
Reply
#5

By using :
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, 1), TogglePlayerSpectating(playerid, 0); // auto spawn at 0
    // or on player connect..
    return 1;
}
correct me if I'm wrong
Reply
#6

Quote:
Originally Posted by Matnix
Посмотреть сообщение
By using :
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, 1), TogglePlayerSpectating(playerid, 0); // auto spawn at 0
    // or on player connect..
    return 1;
}
correct me if I'm wrong
Not a solution,... because this code means, that OnPlayerRequestClass() is being called. And that's exactly what I want to bypass . It does not have to be called. This code also means, that people are going to see arrows and spawn button for a fraction of a second and that looks so not cool.
I solved this problem partially already. How to make it not being called after death if f4 is pressed?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)