Can't Bypass Class Request - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can't Bypass Class Request (
/showthread.php?tid=510869)
Can't Bypass Class Request -
Aerotactics - 02.05.2014
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;
}
Re: Can't Bypass Class Request -
Smileys - 03.05.2014
onplayerrequestclass, put this:
pawn Код:
SetSpawnInfo( ... );
SpawnPlayer( playerid );
https://sampwiki.blast.hk/wiki/SetSpawnInfo
that always worked for me.
Re: Can't Bypass Class Request -
EpicMan - 03.05.2014
u have to make sure that the coordinates u put on textdraw to spawn has to be onplayerspawn or else it wont work.