Posts: 172
Threads: 28
Joined: Jan 2011
Reputation:
0
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
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
I have no idea what you mean for the anims because you're questions are poorly worded.
just add GivePlayerMoney(killerid,amount); in OnPlayerDeath
Posts: 172
Threads: 28
Joined: Jan 2011
Reputation:
0
i mean when i attack with that gun it play an anim
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
You want to change the way players can shoot with an anim? If so, that's impposbile.
Posts: 172
Threads: 28
Joined: Jan 2011
Reputation:
0
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 ?
Posts: 1,297
Threads: 17
Joined: Apr 2011
Posts: 172
Threads: 28
Joined: Jan 2011
Reputation:
0
is there any function to control weapons or can change anything with weapons ?
Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
In which way you want to control them?
And how exactly a katana can stop a bullet? :S
Posts: 135
Threads: 3
Joined: May 2011
Reputation:
0
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!