Help Me with Auto-Creating Bank Account
Hello Alliedmodders,
I am currently trying to edit this so that a bank account gets created as soon as a new player joins the server. At the moment, a player needs to type bank_create in order for a bank account to get created but sometimes new players don't know about the bank system so I could use some help with this. Thank You Code:
public bank_create(id) |
Re: Help Me with Auto-Creating Bank Account
Just call that function in client_putinserver()
|
Re: Help Me with Auto-Creating Bank Account
Quote:
|
Re: Help Me with Auto-Creating Bank Account
PHP Code:
|
Re: Help Me with Auto-Creating Bank Account
Quote:
|
Re: Help Me with Auto-Creating Bank Account
client_putinserver catches when a player actually got into the server after connecting.
client_connect(id) is called first, but this doesn't mean that the player already got into the server cause he can get an error, got the chance to click "cancel", etc. etc... anything put into this function, will be called as soon as the player gets into the server. PHP Code:
|
Re: Help Me with Auto-Creating Bank Account
Quote:
|
Re: Help Me with Auto-Creating Bank Account
Just some more info that could be usefull for you.
PHP Code:
|
Re: Help Me with Auto-Creating Bank Account
1 Attachment(s)
by any chance, can there be two public client_putinserver(id)? its because i found a client_putinserver(id) somewhere in the plugin already.
|
Re: Help Me with Auto-Creating Bank Account
Yes it is possible that the function is already declared in your code. what you can do is simply call the "bank_create(id)" function in your client_putinserver(id) function. something like this:
PHP Code:
|
All times are GMT -4. The time now is 23:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.