SA-MP Forums Archive
Key Bind :S - 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: Key Bind :S (/showthread.php?tid=90223)



Key Bind :S - basker - 06.08.2009

Hello I just wont you to ask you guys how do i script it so when i push The Tab Key It Will do a Command i know it some whit OnPlayerKeyStateChange But i Cant find it in PAWNO Include :S


Peace Out "ZutDenOpFraSlap"


Re: Key Bind :S - saiberfun - 07.08.2009

pawn Код:
public OnPlayerKeyStateChange(playerid,newkey,oldkeys)
{
if(newkeys == thekeyidoftabwhilebeingonfoot)//change"thekeyidoftabwhilebeingonfoot" with the keyid of tab while being onfoot
{
Your Command//without strcmp n stuff just the function
}
return 1;
}



Re: Key Bind :S - basker - 07.08.2009

Many Thx It Work !! BTW your forgot a "s" In The Public so people will get a error if they use it

Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)//here your forgot it ;) 
{
if(newkeys == thekeyidoftabwhilebeingonfoot)//change"thekeyidoftabwhilebeingonfoot" with the keyid of tab while being onfoot
{
Your Command//without strcmp n stuff just the function
}
return 1;
}
But Anyway Fuckin thx for you help Gangstar