Weapons Skills (single Player Method)
#1

Hello , i want to know how to add a system like the Single player in which cj increases its weapon skill by Shooting the target in Ammunation .

EDIT: I Want this system.
Reply
#2

OnPlayerWeaponShot
Reply
#3

Quote:
Originally Posted by JonathanFeitosa
Посмотреть сообщение
OnPlayerWeaponShot
"This callback is called when a player fires a shot from a weapon. Only bullet weapons are supported. Only passenger drive-by is supported (not driver drive-by, and not sea sparrow / hunter shots)."
This is Player Shooting Callback . I want to have a system in which the target get down from the upper and players need to shoot them . Maybe you need to check the Gta San andreas(single Player) ammu nation.
Reply
#4

pawn Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
    if(hittype == BULLET_HIT_TYPE_OBJECT)
    {
        if( IsValidObject( hitid ) ) // // hitid = object id
        {
            SendClientMessage( playerid, -1, "Nice! " );
            DestroyObject( hitid ); // Destroy object
        }
    }
    return 1;
}
+ MoveObject
Reply
#5

Do you know the id of that object?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)