Jump to content
  • 0

O micuta Problema...


Roach

Question

Ii intreb pe cei care stiu, nu prea multi pe aici dar stiu ca, careva dintre voi stiti:

Am aceast "Request" la public OnPlayerConnect:

[pawn]if( !INI_Exist ( pName( playerid ) ) && ( !IsPlayerNPC ( playerid ) ) )

{

new rstring[ 500 ];

format( rstring, 256, "{FFFFFF}Welcome {FF9900}%s{FFFFFF}!", pName( playerid ) );

ShowPlayerDialog( playerid, REGISTERD, DIALOG_STYLE_MSGBOX, rstring, "{FFFFFF}  Registering an account is obligatory!\n  You will have acces to many features!\n  Pressing exit you will be kicked.", "Register", "Kick" );

}

else if( INI_Exist ( pName( playerid ) ) && GetPVarInt( playerid, "Log" ) == 0 && ( !IsPlayerNPC ( playerid ) ) )

{

new lstring[ 500 ];

format( lstring, 256, "{FFFFFF}Welcome {FF9900}%s{FFFFFF}!", pName( playerid ) );

ShowPlayerDialog( playerid, LOGIND, DIALOG_STYLE_MSGBOX, lstring, "{FFFFFF}  This account is registered!\n  Please login or get out of here\n  Pressing exit you will be kicked.", "Login", "Kick" );

}[/pawn]

Dar apare in ambele cazuri numai pentru Prim-ul Player care intra, adica PlayerID 0, de ce?

142sj0l.png

Underground-GFX

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.