2021-03-01, 03:39 PM
(2021-03-01, 03:35 PM)Marllun Wrote:(2021-03-01, 03:24 PM)destiezk Wrote: Actually, I have an idea for you. (Although, I'm not sure if it will work). There is no need to do anything in OnPlayerWeaponShot.
Code:new gFireTruckID = 407;
#define HOLDING(%0) \
((newkeys & (%0)) == (%0))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
? ? if (IsPlayerInVehicle(playerid, gFireTruckID))
? ? {
? ? ? ? if (HOLDING(KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
? ? ? ? {
? ? ? ? ? SendClientMessage(playerid, -1, "You are currently spreading water from a Firetruck.");
? ? ? ? }
? ? }
? ? return 1;
}
I've used this script, but it's inaccurate because I can't know where the player is pointing.
I'm not sure why it is inaccurate? It writes if you're spreading water, getting the position where the water is falling is not possible I think, but correct me somebody