SA-MP Forums Archive
Heal kit or other... - 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)
+--- Thread: Heal kit or other... (/showthread.php?tid=413497)



Heal kit or other... - Er@x3r - 05.02.2013

how to make a script like if i found or i buy a heal kit i can heal my self?or if i have tools i can repair the car.


Re: Heal kit or other... - Noles2197 - 05.02.2013

pawn Код:
CMD:healkit(playerid, params[])
{
     if(pInfo[playerid][Healkit]>0)
     {
         SetPlayerHealth(playerid,100);
         pInfo[playerid][Healkit]--;
     }
     return 1;
}



Re: Heal kit or other... - Er@x3r - 06.02.2013

and how can i make a command if i write /kit will appear a box in what says the amount of kits and somethings...


Re: Heal kit or other... - Da_Noob - 06.02.2013

Stop asking people to script for you. Learn to script for yourself.
Check out the SA-MP Wiki and the tutorials section.


Re: Heal kit or other... - Er@x3r - 06.02.2013

ok sorry, pffff...
because I asked 1-2 thing?


Re: Heal kit or other... - Cameltoe - 06.02.2013

Quote:
Originally Posted by Er@x3r
Посмотреть сообщение
ok sorry, pffff...
because I asked 1-2 thing?
That's two things too much according to this forum's rules. Head over to the request section. If you don't want to wait check out this wiki link for Scripting basics.