kerasseN Posted February 9, 2020 Report Share Posted February 9, 2020 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 Quote Link to comment Share on other sites More sharing options...
andy47 Posted February 10, 2020 Report Share Posted February 10, 2020 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; } Quote Link to comment Share on other sites More sharing options...
kerasseN Posted February 10, 2020 Author Report Share Posted February 10, 2020 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 Quote Link to comment Share on other sites More sharing options...
andy47 Posted February 10, 2020 Report Share Posted February 10, 2020 (edited) Pai poti adauga la onplayerconnect - cand se conecteaza sau la onplayerspawn - cand ii da spawn. Nu e necesara o comanda pentru asta. https://wiki.sa-mp.com/wiki/OnPlayerConnect Edited February 10, 2020 by andy47 Quote Link to comment Share on other sites More sharing options...
st0ryc Posted June 30, 2020 Report Share Posted June 30, 2020 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; } Quote c.e.o your-code.ro Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.