Registration COLOR
#1

HOW I CHANGE REGISTRATION COLOR from my gamemod tell me and how i can put/set registration auto refund money...
Reply
#2

I don't follow you about the color but about refunding you can do something like below:
1. Create a new value in your user.cfg in your GameMode like "PlayerInfo[playerid][pIsPlayerRefunded]".
2. On OnPlayerSpawn section, make an :
PHP код:
if(PlayerInfo[playerid][pIsPlayerRefunded] == 0)
{
    
PlayerInfo[playerid][pMoney] = 100;
    
GivePlayerMoney(playerid100);
    
PlayerInfo[playerid][pIsPlayerRefunded] = 1;

That's it! But make sure there's no "else" after "if(PlayerInfo ..." 'cause that might make some problems.
Reply
#3

where i create user.cfg in game mod folder?
Reply
#4

There must be some functions like CreateAccount, LoadAccount, SaveAccount ....
And if there is not any functions like that I suggest go download some GameModes to know what scripting is ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)