Help please - 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: Help please (
/showthread.php?tid=256139)
Help please -
marwan - 19.05.2011
is there is a function to change weapon things like the anim when he use it and when he kill a player with it he get money and how to make like when the player kill a player he get money
Re: Help please -
marwan - 19.05.2011
bumb
Re: Help please -
cessil - 19.05.2011
I have no idea what you mean for the anims because you're questions are poorly worded.
just add GivePlayerMoney(killerid,amount); in OnPlayerDeath
Re: Help please -
marwan - 20.05.2011
i mean when i attack with that gun it play an anim
Re: Help please -
Toreno - 20.05.2011
You want to change the way players can shoot with an anim? If so, that's impposbile.
Re: Help please -
marwan - 20.05.2011
i mean like i attack with a baseballbat it plays an anim like the katana attack anim and i know a server katana can stop the bullet is that posbile ?
Re : Help please -
Naruto_Emilio - 20.05.2011
Nope dude
Re: Help please -
marwan - 21.05.2011
is there any function to control weapons or can change anything with weapons ?
Re: Help please -
Toreno - 21.05.2011
In which way you want to control them?
And how exactly a katana can stop a bullet? :S
Re: Help please -
AlternativeDC - 21.05.2011
i know if player kill player setplayer score +1 or change but i search now for the moneys
public OnPlayerDeath(playerid, killerid, reason)
{
GetPlayerMoneys(killerid);
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID) SetPlayerMoneys(killerid, GetPlayerMoneys(killerid) + 1000);
return 1;
}
If have errors change the moneys with Cash Example "SetPlayerCash(killerid, GetPlayerCash(killerid) +1000);"
Post errors! if you have!