head hunt - 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: head hunt (
/showthread.php?tid=74771)
head hunt -
WardenCS - 25.04.2009
hello, anybody know how to add something like u kill someone then u get +500$ ?
and how to make command for knife to buy it and when u dont got so much money it will say you dont got enough money!
and how to make like that u will die if u go on water
Re: head hunt -
Dizzlah - 25.04.2009
You know , no offence at all.
But the best way to find or work on a command,
is to observe other scripts.
Most people learned pawno from that.
I mean it's simple asking someone to just write the code.
Jus't give it a try.
Like i stated "No Offence".
Re: head hunt -
WardenCS - 25.04.2009
oh i got that but ineed help with other things 2
Re: head hunt -
WardenCS - 26.04.2009
oh fcmon someone pls help me
Re: head hunt -
XFallout - 26.04.2009
Knife command:
pawn Код:
if(strcmp(cmdtext,"/knife",true)==0)
{
if(GetPlayerMoney(playerid) >= 499)
{
GivePlayerWeapon(playerid, 4, 1);
}
else
SendClientMesssage(playerid, COLOR_ORANGE, "You don't have enough money.");
return 1;
Re: head hunt -
WardenCS - 26.04.2009
erm wtf
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\xxxxxx.pwn(336) : error 017: undefined symbol "SendClientMesssage"
Re: head hunt -
XFallout - 26.04.2009
Quote:
Originally Posted by WardenCS
erm wtf
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\xxxxxx.pwn(336) : error 017: undefined symbol "SendClientMesssage"
|
I get that error too, but I don't know why. I have the a_samp.inc defined.
Re: head hunt -
westre - 26.04.2009
Quote:
Originally Posted by XFallout
Knife command:
pawn Код:
if(strcmp(cmdtext,"/knife",true)==0) { if(GetPlayerMoney(playerid) >= 499) { GivePlayerWeapon(playerid, 4, 1); } else SendClientMesssage(playerid, COLOR_ORANGE, "You don't have enough money."); return 1;
|
Код:
if(strcmp(cmdtext,"/knife",true)==0)
{
if(GetPlayerMoney(playerid) >= 499)
{
GivePlayerWeapon(playerid, 4, 1);
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "You don't have enough money.");
}
return 1;
}
There, check your spelling next time and you forgot your brackets..
Re: head hunt -
miokie - 26.04.2009
OnPlayerDeath:
pawn Код:
GivePlayerMoney(killerid,500);
Re: head hunt -
WardenCS - 26.04.2009
thx,but now it get knife free....