Jump to content

Recommended Posts

Posted

Vreau sa ma invatati si pe mine cum pot sa fac ca atunci cand intra un jucator sa ii dea un mesaj

 

%s Bine ai venit pe server.

 

de fiecare data cand intra pe server sa ii afiseze acest mesaj

Posted

Daca ai un system de login/register, pui acolo unde a introdus parola corect:

 

new string[128];
format(string,sizeof(string),"Bine ai venit pe server %s!",GetName(playerid));
SendClientMessage(playerid, -1, string);

stock GetName(playerid)
{
    new nume[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nume, sizeof(nume));
    return nume;
}

 

Posted
Chiar acum, andy47 a spus:

Daca ai un system de login/register, pui acolo unde a introdus parola corect:

 


new string[128];
format(string,sizeof(string),"Bine ai venit pe server %s!",GetName(playerid));
SendClientMessage(playerid, -1, string);

stock GetName(playerid)
{
    new nume[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nume, sizeof(nume));
    return nume;
}

 

nu am nici un system e un gm de la 0 unde invat sa fac comenzi =D

  • 4 months later...
Posted

vezi sa ai include-ul ysi\y_va

public onplayerconnect(playerid) {

va_sendclientmessage(playerid, -1, "%s s-a logat pe server", GetName(playerid); // daca nu ai ysi\y_va foloseste-te de un string

return true; }

stock GetName( playerid ) {
    new name[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, name, sizeof name );
    return name; }

c.e.o your-code.ro

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.