Jump to content

Comanda simpla prin zcmd


kerasseN

Recommended Posts

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

 

Link to comment
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

Link to comment
Share on other sites

  • 4 months later...

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

Link to comment
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.

×
×
  • 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.