Fire in the hole!
#1

Hi guys!
When I was playing counter strike,I have became an original idea. To make when somebody throw grenade to show him SendClientMessage(playerid,Color,"Fire in the hole!"); but I don't have any idea how can I do that, to detect when I'm throwing grenades. Please help me!
Reply
#2

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE && !(oldkeys & KEY_FIRE) && GetPlayerWeapon(playerid) == WEAPON_GRENADE)
    {
        // Send the message
    }
    return 1;
}
Reply
#3

Wouldn't a TextDraw work better with something like this?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)