Jump to content
Sign in to follow this  
kerasseN

Comanda simpla prin zcmd

Recommended Posts

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

Share this post


Link to post
Share on other sites

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;
}

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.