head hunt
#1

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
Reply
#2

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".
Reply
#3

oh i got that but ineed help with other things 2
Reply
#4

oh fcmon someone pls help me
Reply
#5

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;
Reply
#6

erm wtf
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\xxxxxx.pwn(336) : error 017: undefined symbol "SendClientMesssage"
Reply
#7

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.
Reply
#8

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..
Reply
#9

OnPlayerDeath:
pawn Код:
GivePlayerMoney(killerid,500);
Reply
#10

thx,but now it get knife free....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)