Help me with Relic - 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)
+--- Thread: Help me with Relic (
/showthread.php?tid=427347)
Help me with Relic -
Configuration - 01.04.2013
Hello who know how to make RELIC, relic is if i have relic if kill player get 1000 Money if dont have it get 500 Money.Help Me
Re: Help me with Relic -
Nathan_Taylor - 01.04.2013
Well, make a way for people to pickup/drop the relic and do the following
pawn Код:
new HasRelic[MAX_PLAYERS]; //top of code somewhere
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(HasRelic[playerid] == 1){
GivePlayerMoney(killerid, 1000);
} else {
GivePlayerMoney(killerid, 500);
}
}
You could have a pickup as the relic, and on player death, if you hyave the relic, a pickup spawns at the location where the player died.
Re: Help me with Relic -
Configuration - 02.04.2013
Thnaks