[FS] Help
#1

can someone make a simple filterscript
for example
"if a player enters in server he gets xx of ammount only once"
Reply
#2

PHP код:
public OnPlayerConnect(playerid)
{
      
GivePlayerMoney(playerid5000); //change 5000 with whatever you want
      
return 1;

Reply
#3

Quote:
Originally Posted by UberEverywhere
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playerid)
{
      
GivePlayerMoney(playerid5000); //change 5000 with whatever you want
      
return 1;

You do realize that the player will get $5.000 whenever he connects, right?
Reply
#4

I do, but the topic creator didn't mention which database he was using.
If he did, i would check if the player is registered or not, if he is not, it will give him the cash, but if he is, it won't give him.
Reply
#5

Quote:
Originally Posted by UberEverywhere
Посмотреть сообщение
I do, but the topic creator didn't mention which database he was using.
If he did, i would check if the player is registered or not, if he is not, it will give him the cash, but if he is, it won't give him.
Quote:
Originally Posted by aniket14
Посмотреть сообщение
can someone make a simple filterscript
for example
"if a player enters in server he gets xx of ammount only once"
Reply
#6

la admin
Reply
#7

Quote:
Originally Posted by UberEverywhere
Посмотреть сообщение
I do, but the topic creator didn't mention which database he was using.
If he did, i would check if the player is registered or not, if he is not, it will give him the cash, but if he is, it won't give him.
i am using la admin
is there any way to give player cash only once ?
Reply
#8

Quote:
Originally Posted by UberEverywhere
Посмотреть сообщение
I do, but the topic creator didn't mention which database he was using.
If he did, i would check if the player is registered or not, if he is not, it will give him the cash, but if he is, it won't give him.
i don't want the continuous loop player should get xx ammount to money only once and if he retry's he won't get that again
Reply
#9

Quote:
Originally Posted by killer9
Посмотреть сообщение
i don't want the continuous loop player should get xx ammount to money only once and if he retry's he won't get that again
Can you show us your register/login system code or something? Or at least tell us the saving system Y_ini or Dini or MySQL.
Reply
#10

Quote:
Originally Posted by Escobabe
Посмотреть сообщение
Can you show us your register/login system code or something? Or at least tell us the saving system Y_ini or Dini or MySQL.
i am using la admin in my gamemode
Y_ini saving system

This one https://sampforum.blast.hk/showthread.php?tid=19819
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)