Giving score on player connect. And money/score every 3 minutes
#1

Giving score/money on player connect. And money/score every 3 minutes

I want to give player money/scores when they join the first time (When they finish register, they receive them, not everytime they login, it will be abused). And giving them money/scores every 3 minutes or so. Thanks!
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerScore - For setting player score when they register. Should apply where the player is told he successfully registered.
https://sampwiki.blast.hk/wiki/SetTimer - for your score every 3 minutes
https://sampforum.blast.hk/showthread.php?tid=133801 - for a lesson in SetTimer
Reply
#3

pawn Code:
//OnPlayerConnect
SetPlayerScore(playerid, GetPlayerScore(playerid) +1);

//OnGameModeInIt
    SetTimer("ScoreGiver",180000,1);

//timer
forward ScoreGiver(playerid);
public ScoreGiver(playerid)
{
    SetPlayerScore(playerid, GetPlayerScore(playerid) +1);
    GivePlayerMoney(playerid, 5000);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)