05.04.2018, 17:17
Hello guys, i need to assign a key to a cmd, could someone help me?? (need code)
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 16) // 16 = enter
{
cmd_commandname(playerid,"");
}
return 1;
}
G key is not usable in SA:MP.
here is a list of keys - https://sampwiki.blast.hk/wiki/Keys |