Key Bind :S
#1

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

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;
}
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)