- 0
/ChangeStats - /Stats
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
AnD
Salut. Am si eu o Mica - Mare problema. Am pe server comanda /changestats. [ Dialog si Normal ]. Deci cand vreau sa scriu /changestats normal sa imi apara cand dau /stats sa imi apara statusul normal, cand dau /changestats dialog sa imi apara statusul in dialog. Ma puteti ajuta sa fac aceasta legatura intre comenzi?
Uitati comenzile:
//-------------------------------[Stats]---------------------------------------------------- if(strcmp(cmd,"/changestats",true)==0) { if(IsPlayerConnected(playerid)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SCM(playerid, COLOR_WHITE, "FOLOSIRE: /changestats [normal sau dialog]"); return 1; } else if(strcmp(x_nr,"normal",true) == 0) { if (gPlayerLogged[playerid] != 0) { ShowStats(playerid,playerid); SendClientMessage(playerid, COLOR_GRAD1, "Statusul tau va fi afisat Normal."); return 1; } else SendClientMessage(playerid, COLOR_GRAD1, "Tu nu esti logat !"); return 1; } else if(strcmp(x_nr,"dialog",true) == 0) { if (gPlayerLogged[playerid] != 0) { ShowCont(playerid,playerid); SendClientMessage(playerid, COLOR_GRAD1, "Statusul tau va fi afisat in Dialog."); return 1; } else SendClientMessage(playerid, COLOR_GRAD1, "Tu nu esti logat !"); return 1; } } } if (strcmp(cmd, "/stats", true) == 0) { if(IsPlayerConnected(playerid)) { if (gPlayerLogged[playerid] != 0) { ShowCont(playerid,playerid); return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, "Tu nu esti logat !"); } } return 1; }www.XtremeZone.ro - Click & Register
3 answers to this question
Recommended Posts