Can't Bypass Class Request
#1

My partner and I are trying to skip class request, and the way we are doing it isn't working. We've tried using SpawnPlayer and spectate, and nothing seems to be working correctly. Before trying to re-write the script, explain to me what you are doing, and why you are doing it.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, 1);
    PlayerSpectatePlayer(playerid, INVALID_PLAYER_ID);
    TogglePlayerSpectating(playerid, 0);
    return 1;
}
Reply
#2

onplayerrequestclass, put this:

pawn Код:
SetSpawnInfo( ... );
SpawnPlayer( playerid );
https://sampwiki.blast.hk/wiki/SetSpawnInfo

that always worked for me.
Reply
#3

u have to make sure that the coordinates u put on textdraw to spawn has to be onplayerspawn or else it wont work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)