SA-MP Forums Archive
Does anyone know ? - 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: Does anyone know ? (/showthread.php?tid=287495)



Does anyone know ? - moadi - 03.10.2011

Hello ,

I've seen something in few servers that for an example if you press enter or any other key it calls your code instead of using CMDs and such , does anybody know which function i have to use ?

Thanks .


Re: Does anyone know ? - Wesley221 - 03.10.2011

pawn Код:
public OnPlayerKeyStateChange(....)
{
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange


Re: Does anyone know ? - moadi - 03.10.2011

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
pawn Код:
public OnPlayerKeyStateChange(....)
{
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Thanks 1+ rep