Detonator
#1

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
        if(GetPlayerWeapon(playerid)==40){
            if (PRESSED(KEY_FIRE)){
            SendClientMessage(playerid,COLOR_BRIGHTRED,"Beep!");
            }
        }
    }
What is wrong with that? I cant get to "SendClientMessage"

it's located on OnPlayerKeyStateChange
Reply
#2

stop cnping<.<
Reply
#3

cnping? o_o what u mean
Reply
#4

Copy n Pasting
Reply
#5

I just wrote that :S
Reply
#6

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
    if(GetPlayerWeapon(playerid)== 40)
    {
        if (PRESSED(KEY_FIRE))
        {
            SendClientMessage(playerid,COLOR_BRIGHTRED,"Beep!");
        }
    }
}
Reply
#7

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?
Reply
#8

i know but you make your codes horrible.
Reply
#9

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...
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)