[Tutorial] Simple Auto-Repair
#5

Quote:
Originally Posted by ObelesMarc
Посмотреть сообщение
Nice one... This is much better than pressing 2... Anyways this is so easy to make... Well, anyways nice
Thanks so much.

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
vehicleid parameter is not needed and you haven't explained it well about the function and native. Please learn how to script first then make a tutorial.
Explain what really is the problem here because I use the script, everyone that joins my server has the same outcome so I don't see what is the problem with this script.

Quote:
Originally Posted by NeTuddMeg
Посмотреть сообщение
hmm.. WTF!

pawn Код:
#include <a_samp>
forward Rep();
public OnGameModeInit()
{
       SetTimer("Rep",1000,true);
}
public Rep()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)) RepairVehicle(GetPlayerVehicleID(i));
}
I see.. This is so that the Timer doesn't loop if anyone isn't connected.. Thanks for the correct. I'll edit the tutorial.
Reply


Messages In This Thread
Simple Auto-Repair - by Jagofr - 01.03.2012, 01:57
Re: Simple Auto-Repair - by Deathlane - 01.03.2012, 09:55
Re: Simple Auto-Repair - by T0pAz - 01.03.2012, 10:10
Re: Simple Auto-Repair - by NeTuddMeg - 01.03.2012, 10:13
Re: Simple Auto-Repair - by Jagofr - 04.03.2012, 18:22
Re : Simple Auto-Repair - by mehdi-jumper - 06.03.2012, 12:07
Re: Re : Simple Auto-Repair - by Max_Coldheart - 06.03.2012, 15:32
Re: Re : Simple Auto-Repair - by wups - 06.03.2012, 15:51
Re : Simple Auto-Repair - by mehdi-jumper - 06.03.2012, 17:04
Re: Simple Auto-Repair - by Jagofr - 10.03.2012, 01:52

Forum Jump:


Users browsing this thread: 1 Guest(s)