Jump to content
  • 0

Help /newname


.shadoW

Question

Nick: xStyle

Problema: Vreau ca atunci cand un player vrea sa-si schimbe numele sa foloseasca o comanda care sa-i salveze levelu ore vip etc fara sa mai umblu prin baza de date sau sa ii dea un admin /setname. Comanda /newname

Erori / warnings:

Lini/script: Nu are rost sa le pun pentru ca nu sunt bune. :(

Ai incercat sa rezolvi singur ?: da, tot nu resusesc.

 

logo.png

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Da folosesc. Imi cer scuze dar nu vreau din adins sa fac spam

Uite:

[pawn]CMD:newname(playerid, params)

{

new NumeNou[MAX_PLAYER_NAME];

if(sscanf("s[30]", NumeNou))

    return SendClientMessage(playerid, -1, "Introdu numele nou.");

   

    SetPlayerName(playerid, NumeNou);

   

    // De aici adaugi tu tot ce trebuie sa-i updateze numele in baza de date!

   

    return 1;

}[/pawn]

Link to comment
Share on other sites

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.