SA-MP Forums Archive
Few Questions - 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: Few Questions (/showthread.php?tid=273838)



Few Questions - Azzeto - 03.08.2011

Ok heres my list of what I need to know how to make.

I need it so when a player kills a player the killer get rewarded 1,500$
I need to know how to "save a player vehicle" so if he spawns it from my dialog, it'll charge him xxx,xxx$, I know how to make it charge, but How do I make it save to his file or w/e with the vehicle mods? - NVM About the vehicle thing, I'll learn that myself, But what about the player killer?

UPDATED: I need help with adding the streamer, for some reason it doesnt work, Whenever I use a map some one mapped me "createDynamicObject" i'v installed the include and all, but it always buggs the server


Re: Few Questions - Calgon - 03.08.2011

Place this code in OnPlayerDeath:

pawn Code:
if(killerid != INVALID_PLAYER_ID)
    GivePlayerMoney(killerid, 1500);



Re: Few Questions - Shockey HD - 03.08.2011

Quote:
Originally Posted by Azzeto
View Post
Ok heres my list of what I need to know how to make.

I need it so when a player kills a player the killer get rewarded 1,500$
I need to know how to "save a player vehicle" so if he spawns it from my dialog, it'll charge him xxx,xxx$, I know how to make it charge, but How do I make it save to his file or w/e with the vehicle mods? - NVM About the vehicle thing, I'll learn that myself, But what about the player killer?
For the first one.

under OnPlayerDeath add

GivePlayerCash(killerid,1500);


Re: Few Questions - Azzeto - 03.08.2011

Thank you both, Now I have one more question that just popped up,
I'm using Y_INI for my registration/login system, what would be the format to make admin commands? Lol.


Re: Few Questions - Shockey HD - 03.08.2011

Do you have TeamViewer? i can help you there. PM me the info


Re: Few Questions - Azzeto - 03.08.2011

Never mind, I'v figured it out, thanks though!