Need some help ;)
#3

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
if(
PRESSED,("KEY_SUBMISSION);
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, vehicleid))
{
SetVehicleHealth(vehicleid,1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid,COLOR_YELLOW,"
Vehicle fixed!");
}
}
if(PRESSED(KEY_ACTION))
{
if(IsPlayerNotInVehicle(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"
You have to be in a vehicle!");
}

This is supposed to be a fix vehicle button not a teleport button
Reply


Messages In This Thread
Need some help ;) - by Racer99 - 26.07.2012, 03:39
Re: Need some help ;) - by Devilxz97 - 26.07.2012, 03:50
Re: Need some help ;) - by Racer99 - 26.07.2012, 03:59
Re: Need some help ;) - by Kitten - 26.07.2012, 04:04
Re: Need some help ;) - by Racer99 - 26.07.2012, 04:10
Re: Need some help ;) - by Devilxz97 - 26.07.2012, 07:34
Re: Need some help ;) - by Devilxz97 - 26.07.2012, 07:36
Re: Need some help ;) - by Racer99 - 26.07.2012, 14:11
Re: Need some help ;) - by Alexis1999 - 26.07.2012, 14:14
Re: Need some help ;) - by Racer99 - 26.07.2012, 14:25

Forum Jump:


Users browsing this thread: 2 Guest(s)