PDA

View Full Version : Heal kit or other...


Er@x3r
05/02/2013, 04:37 PM
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.

Noles2197
05/02/2013, 08:09 PM
CMD:healkit(playerid, params[])
{
if(pInfo[playerid][Healkit]>0)
{
SetPlayerHealth(playerid,100);
pInfo[playerid][Healkit]--;
}
return 1;
}

Er@x3r
06/02/2013, 11:01 AM
and how can i make a command if i write /kit will appear a box in what says the amount of kits and somethings...

Da_Noob
06/02/2013, 01:46 PM
Stop asking people to script for you. Learn to script for yourself.
Check out the SA-MP Wiki and the tutorials section.

Er@x3r
06/02/2013, 02:43 PM
ok sorry, pffff...
because I asked 1-2 thing?

Cameltoe
06/02/2013, 02:59 PM
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 (http://wiki.sa-mp.com/wiki/Scripting_Basics) link for Scripting basics.