04.10.2013, 16:01
how to make this open gate to key "H". i don't want cmd example /lspd.... i want open gate this key "H" please write this script... link and this script (
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((oldkeys & KEY_CROUCH) && !(newkeys & KEY_CROUCH))
{
// do your code here to open the gate
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((oldkeys & KEY_HORN))
{
//Your Code here
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_CROUCH) && !(oldkeys & KEY_CROUCH))
{
// do your code here to open the gate
}
return 1;
}
Actually my post was wrong. I was typing fast and as a result, I wrote them opposite.
pawn Код:
Anyways, thanks for replying and I found out my mistake! |