Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fix command

kan iemand me hier nog mee helpe?

if(strcmp("/fix", cmdtext, true) == 0)

{

if(IsPlayerInAnyVehicle(playerid))

{

new vehicleID;

new Float:health;

vehicleID = GetPlayerVehicleID(playerid);

GetVehicleHealth(vehicleID, health);

SetVehicleHealth(vehicleID,1000.0);

}

}

return 1;}

bedankt alvast :tu:

hij klopt niet

Edited by tinyq

Featured Replies

if(strcmp("/fix", cmdtext, true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicle, 1000.0);
}
return 1;
}

Edited by WackoX

  • Author

srry wackox het werkt nog niet hij zegt steeds unknow command als ik het intype in server :N

Ben je het vergeten te compilen? De code hoort gewoon te werken.

Je moet wel in een auto zitten om /fix te doen..

  • Author

weet ik maar als ik in auto zit doet ie nog niet en heb ook gecompiled :ch:

Dan heb je het op de een of andere manier toch fout gedaan hij moet het doen.

Heeft een auto wel 1000 health?

Ja... :Y

Dat commando zou gewoon moeten werken. :{

Edited by =>Sandra<=

Ik zie al wat het probleem is. Hij werkt gewoon alleen je zit het effect niet als er geen rook uit de auto komt. Dus zet deze ClientMessage er maar bij:

SendClientMessage(playerid, COLOR_GREEN, "Vehicle Fixed!");

En dan krijg je:

if(strcmp("/fix", cmdtext, true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicle, 1000.0);
SendClientMessage(playerid, COLOR_GREEN, "Vehicle Fixed!");
}
return 1;
}

Nu kun je zien als je de code gebruikt. :7

LET OP! Ik denk dat jij COLOR_GREEN niet defined hebt. Dus dat moet je dan in een andere kleur veranderen!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.