#1

Hey all, I want to create a little zone...I mean..if player is in that zone it will give him $10 each 2 seconds for example, is this possible?
Reply
#2

Please note this solution requires the streamer plugin here https://sampforum.blast.hk/showthread.php?tid=102865
and foreach include here https://sampforum.blast.hk/showthread.php?tid=92679

pawn Код:
new MoneyArea;

OnGameModeInit()
{
    MoneyArea = CreateDynamicSphere(0.0, 0.0, 0.0, 3.0);
    SetTimer("CheckMoney", 1788, true);
}

forward CheckMoney()
public CheckMoney()
{
    foreach(new i : Player)
    {
        if(IsPlayerInDynamicArea(i)) GivePlayerMoney(i, 10);
    }
}
Reply
#3

Thanks very much, and how to i get the coordinates i want only small box "zone"..


btw the first link doesnt work
Reply
#4

Fixed the link, coord's are pretty easy to get you can type /save to save positions then just put in your min/max points when defining an area.
Reply
#5

ok and witch one is it?

AddPlayerClass(217,1998.3448,1567.4259,15.3672,69. 3196,0,0,0,0,0,0); //
AddPlayerClass(217,2005.3358,1518.7369,17.0682,201 .5475,0,0,0,0,0,0); //
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)