Basic question +REP
#1

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 ?
Reply
#2

You tried with "if(IsPlayerConnected(playerid))" ?
Reply
#3

https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Reply
#4

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
Reply
#5

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."
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)