plz help me!
#1

when I shoot so it will come up text every time I shoot from the window of the car, can I remove it? yes or have deleted text, but it then becomes a space only in main chat, it's pretty over someone help me?



public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
new szString[144];
format(szString, sizeof(szString), "message", weaponid, hittype, hitid, fX, fY, fZ);
SendClientMessage(playerid, -1, szString);

return 1;
}
Reply
#2

Check for the players state on shooting... If the player is a passenger then donot pass this message.
Try this code..

Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(GetPlayerState(playerid) != PLAYER_STATE_PASSENGER)
{
new szString[144];
format(szString, sizeof(szString), "message", weaponid, hittype, hitid, fX, fY, fZ);
SendClientMessage(playerid, -1, szString);
}

return 1;
}
Reply
#3

thanks it worked

Now I just need so you can change weapons inside the car, is that true?
Reply
#4

https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon

You should get the data of the player about what weapon he has and then set the armed weapon as per as you want....
Reply
#5

done
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)