SA-MP Forums Archive
[FilterScript] Health & armour cmds [6 cmds] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Health & armour cmds [6 cmds] (/showthread.php?tid=165437)



Health & armour cmds [6 cmds] - Shockey - 04.08.2010

Another easy filterscript by me coz Im just a beginner and want to help other people
plz no bad criticism as Im 13 and dnt wanna deal with it

cmds:

/heal
/halflife
/kill

/armour
/halfarmour
/ noarmour

link:
http://pastebin.com/6xdEY8Kp

enjoy even tho it's simple


Re: Health & armour cmds [6 cmds] - Kar - 04.08.2010

lol... good for new users.. i Guess


Re: Health & armour cmds [6 cmds] - Septimus314 - 28.08.2010

Quote:
Originally Posted by Shockey
Посмотреть сообщение
Another easy filterscript by me coz Im just a beginner and want to help other people
plz no bad criticism as Im 13 and dnt wanna deal with it

cmds:

/heal
/halflife
/kill

/armour
/halfarmour
/ noarmour

link:
http://pastebin.com/6xdEY8Kp

enjoy even tho it's simple
the first cmds i ever did now im editing carlitos for my own server, nice work


Re: Health & armour cmds [6 cmds] - Claude - 28.08.2010

Nice work for the first time


Re: Health & armour cmds [6 cmds] - Creation - 29.08.2010

This is usefull. Good script.


Re: Health & armour cmds [6 cmds] - Kwarde - 09.09.2010

What they say
My first script ever was a BIG FAIL. If you started the FS, the whole server just stopped
Nice job Shockey!


Re: Health & armour cmds [6 cmds] - Double-O-Seven - 09.09.2010

Have you guys even seen this code? Clicked on the pastebin link?
Sorry, but this code looks like a fail.

pawn Код:
if (strcmp("/armour", cmdtext, true, 10) == 0)
}
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid, -1000);
{
return 1;
 return SendClientMeassage(playerid, 0xffffffaa "you now have full armour");
What the heck?

Correct would be:
pawn Код:
if(strcmp("/armour",cmdtext,7) == 0)
{
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid, -1000);
SendClientMeassage(playerid, 0xffffffaa "you now have full armour");
return 1;
}