Just a little help here.
#1

Hi!
I forgot on how to do it so, when a player connects, the server gives him 100 score, but only one time, i don't want it to constantly give 100 score everytime the player joins
thanks!
Reply
#2

Quote:
Originally Posted by DeathFire
Посмотреть сообщение
Hi!
I forgot on how to do it so, when a player connects, the server gives him 100 score, but only one time, i don't want it to constantly give 100 score everytime the player joins
thanks!
Do you have your own register/saving system? if you do put this in register dialog

pawn Код:
SetPlayerScore(playerid, 100);
Reply
#3

yeh i do
Reply
#4

Код:
#include <a_samp>

new refundcheck[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    if(refundcheck[playerid] >= 0)
    {
      SetPlayerScore(playerid, 100);
      refundcheck[playerid] = 1;
    }
    else if(refundcheck[playerid] >=1) return 0;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)