[Help]OnPlayerKeys - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help]OnPlayerKeys (
/showthread.php?tid=162351)
[Help]OnPlayerKeys -
TheKingOfSamp - 23.07.2010
i know i wrote this thread again , but the guys yesterday answered me that to go this
https://sampwiki.blast.hk/wiki/GetPlayerKeys
well i read everything , but i didn't understand everything so i need your help
how i can do that , when cop guy press Caps Lock ((Horn)) the gate open
and when he press again the gate close
my gates codes
Код:
lspdgate = CreateObject(971, 1588.5617, -1638.1036, 12.7200, 0, 0, 0); //POLICE 1
Код:
lspddoor1 = CreateObject(1500,244.864364,72.458389,1002.565063,0.000000,0.000000,361.686676);
i hope get your help thank you all
Re: [Help]OnPlayerKeys -
DarkClone - 23.07.2010
OnPlayerCommandText..
Код:
if(PRESSED(KEY_SUBMISSION){
if(blahblah[cop] == 1)
{
MoveObject(.....);
blahblah[opened] = 1;
return 1;
}
else if(opened == 1)
MoveObject(....);
return 1;
}
else return 0;
}
Something like that.
Re: [Help]OnPlayerKeys -
TheKingOfSamp - 23.07.2010
Код:
C:\Documents and Settings\Wattad\Desktop\GMS\Godfather\pawno\include\utils.inc(10) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1467) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1476) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1487) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1495) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1916) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1931) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1945) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(1953) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2045) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2052) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2069) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2336) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2355) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2373) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2396) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2414) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2432) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\DOCUME~1\Wattad\Desktop\GMS\LSRP.pwn(2449) : warning 219: local variable "playerid" shadows a variable at a preceding level
when i remove the script from my gm then the gm works good