public OnPlayerRequestSpawn( playerid ) { if( INI_Exist ( pName( playerid ) ) ) { if( GetPVarInt( playerid, "pLog" ) == 0 ) { SendClientMessage( playerid, green, "This name is already registered. Please /login password to login to this account. "); return ( 0 ); } } return ( 1 ); }
public OnPlayerConnect( playerid ) { if( GetPVarInt( playerid, "pLog" ) == 0 ) { if( INI_Exist ( pName( playerid ) ) ) { SystemMsg( playerid, "This name is already registered. Please /login [password] to login." ); } else SystemMsg( playerid, "This name is not registered. /register password for free $150,000!" ); } return ( 1 ); }
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/register");
public OnPlayerConnect( playerid ) { if( GetPVarInt( playerid, "pLog" ) == 0 ) { if( INI_Exist ( pName( playerid ) ) ) { SystemMsg( playerid, "This name is already registered. Please /login [password] to login." ); CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/login"); } else{ SystemMsg( playerid, "This name is not registered. /register password for free $150,000!" ); CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/register"); } } return ( 1 ); }
WAit i just added that to my script yesterday your lucky here
Add in On player Connect Код:
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/register"); |
What do you mean by automatic registering players can u give me ip lemme see your server ...
|
public OnPlayerRequestSpawn( playerid ) { // DONT put anything here and try it } return ( 1 ); }
public OnPlayerConnect( playerid ) { if( GetPVarInt( playerid, "pLog" ) == 0 ) { if( INI_Exist ( pName( playerid ) ) ) { SystemMsg( playerid, "This name is already registered. Please /login [password] to login." ); CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/login"); } else{ SystemMsg( playerid, "This name is not registered. /register password for free $150,000!" ); CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/register"); } } return ( 1 ); }