SA-MP Forums Archive
[FS] Help - 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: [FS] Help (/showthread.php?tid=643095)



[FS] Help - aniket14 - 13.10.2017

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


Re: [FS] Help - UberEverywhere - 13.10.2017

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




Re: [FS] Help - cuber - 13.10.2017

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?


Re: [FS] Help - UberEverywhere - 13.10.2017

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.


Re: [FS] Help - cuber - 13.10.2017

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"



Re: [FS] Help - killer9 - 13.10.2017

la admin


Re: [FS] Help - killer9 - 13.10.2017

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 ?


Re: [FS] Help - killer9 - 13.10.2017

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


Re: [FS] Help - Escobabe - 13.10.2017

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.


Re: [FS] Help - killer9 - 13.10.2017

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