how refuel my car pressing hotkeys??
#1

hey i have been trying to long trying to find a script that can refuel your car when u are at the gas station
so is like a car fuel system but i want it not to do it a commands i want the when i am at fuel station i press (H)
to refuel my car?
Reply
#2

Do you have the refuel system?
Reply
#3

if(IsPlayerInRangeOfPoint(playerid, 10.0, X, Y, Z)) - X, Y, Z of your gas station.

OnPlayerKeyStateChange..

Give us more code.
Reply
#4

yeas i have the code here u go

here is the link:

http://pastebin.com/0tMBrTQm
Reply
#5

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & YOUR_KEY)
    {
        OnPlayerCommandText("/refuel");
    }
    return true;
}
Reply
#6

Quote:

C:\Users\Elvis_V\Desktop\Pwno Cops And Robbers Server!!\filterscripts\fuel.pwn(77) : error 054: unmatched closing brace ("}")
C:\Users\Elvis_V\Desktop\Pwno Cops And Robbers Server!!\filterscripts\fuel.pwn(83) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

that what i get plz help
Reply
#7

Oops..

Like that:
pawn Код:
OnPlayerCommandText(playerid, "/refuel");
Reply
#8

how do i put the H key?
Reply
#9

https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)