SA-MP Forums Archive
need script - fix - - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need script - fix - (/showthread.php?tid=83454)



need script - fix - - sggassasin - 25.06.2009

Hi i need a script that will allow me to go ..

/fix
then it fix the car and take $1000 away


Thx for your time


Re: need script - fix - - woot - 25.06.2009

pawn Код:
if(strcmp(cmdtext, "/fix", true) == 0)
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, " Not in a vehicle.");
    if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, 0xFFFFFFFF, " Not enough cash.");
    else
    {
        SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
        GivePlayerMoney(playerid, -1000);
        SendClientMessage(playerid, 0xFFFFFFFF, " Vehicle fixed!");
    }
    return 1;
}
Took me 5,72 seconds.


Re: need script - fix - - Burridge - 25.06.2009

Quote:
Originally Posted by //exora
Took me 5,72 seconds.
maybe for you, and me and others, but for him, he mgiht not really know how to cide and hence asked for some help, you can learn alot from other peoples help ya know


Re: need script - fix - - sggassasin - 25.06.2009

Quote:
Originally Posted by [UF
XtreaMeR ]
Quote:
Originally Posted by //exora
Took me 5,72 seconds.
maybe for you, and me and others, but for him, he mgiht not really know how to cide and hence asked for some help, you can learn alot from other peoples help ya know
Dame Right

Thx For The Code Man