pressing buttons
#7

Quote:
Originally Posted by XoX
Посмотреть сообщение
I think it won't work without getting the ID of the cheater
why wouldn't it when a player does press a button you can check if he does so with

pawn Код:
OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if (newkeys & KEY_FIRE)
{

}
}
but he'd need the keyid of R INSERT and F12
which he could get with(correct me if it's wrong didn't use pawn in a long time^^):
pawn Код:
OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(newkeys != 0)
{
new msg[10];
format(msg, 10, "%i", newkeys);
SendClientMessage(playerid, yourcolor,msg);
}
}
I'm not sure if these even exist...
Reply


Messages In This Thread
pressing buttons - by Dainyzxz - 11.01.2011, 15:29
Re: pressing buttons - by Dainyzxz - 11.01.2011, 15:57
Re: pressing buttons - by XoX - 11.01.2011, 16:04
Re: pressing buttons - by Infamous - 11.01.2011, 16:07
Re: pressing buttons - by Dainyzxz - 11.01.2011, 16:13
Re: pressing buttons - by Scenario - 11.01.2011, 16:15
Re: pressing buttons - by saiberfun - 11.01.2011, 16:15
Re: pressing buttons - by Infamous - 11.01.2011, 16:17
Re: pressing buttons - by Dainyzxz - 11.01.2011, 16:43
Re: pressing buttons - by XoX - 11.01.2011, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)