23.06.2013, 08:57
Press N
For My Weapon command
How Can I Do that ?
For My Weapon command
How Can I Do that ?
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_NO) //Normal no response is of key "N".
{
//Stuffs here.
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_NO) //No key
{
// do something here !
// example:
SendClientMessage(playerid, -1," noob!!!");//.....
//etc
}
return 1;
}