Posts: 2,938
Threads: 162
Joined: May 2010
Posts: 2,938
Threads: 162
Joined: May 2010
Posts: 2,938
Threads: 162
Joined: May 2010
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if(GetPlayerWeapon(playerid)== 40)
{
if (PRESSED(KEY_FIRE))
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"Beep!");
}
}
}
Posts: 163
Threads: 40
Joined: Aug 2006
Reputation:
0
thats exactly the same code :P
__
nvm my code was right but it destroyes the detonator before i can check... (tested with a pistol and worked)
anyway around this?
Posts: 2,938
Threads: 162
Joined: May 2010
i know but you make your codes horrible.
Posts: 163
Threads: 40
Joined: Aug 2006
Reputation:
0
09.07.2010, 19:48
(
Последний раз редактировалось aNdReSk; 09.07.2010 в 20:06.
)
why cuz of a couple of enters? :P
I can read them what way so.. Im ok with that
nvm on this one.. too much trouble to use the detonator as remote controller...
Posts: 372
Threads: 37
Joined: Jul 2007
Reputation:
0
Try
if(newkeys & KEY_FIRE) {
Theirs not too many problems you just need to do it right. I've never seen that PRESSED thing done before, THis will work fine.