Basic question +REP - 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: Basic question +REP (
/showthread.php?tid=586037)
Basic question +REP -
Snoopythekill - 18.08.2015
I want to send a dialog when pressing the button "spawn" in the selection of class, how do I know if a player has pressed the button "spawn ?
Re: Basic question +REP -
radiobizza - 18.08.2015
You tried with "if(IsPlayerConnected(playerid))" ?
Re: Basic question +REP -
Inn0cent - 18.08.2015
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Respuesta: Re: Basic question +REP -
Snoopythekill - 18.08.2015
Quote:
Originally Posted by radiobizza
You tried with "if(IsPlayerConnected(playerid))" ?
|
I think that that wouldn't work..
Quote:
Originally Posted by Inn0cent
|
I know that the public function is called when a player enters the class selection, there is no way to know when the button is pressed "spawn", is called only when you change your class.
Edit: srr, i was confused with OnPlayerRequestClass, I want to send the dialog before you spawn
Re: Basic question +REP -
Inn0cent - 18.08.2015
No, Its the right function. If you red it carefully.
"Called when a player attempts to spawn via class selection either by pressing SHIFT or clicking the 'Spawn' button."