Jump to content

Leonardo23

Membru
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Leonardo23's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

3

Reputation

  1. Te admin ca recunosti.
  2. Ai incercat, poate pe viitor vei veni cu ceva mai bun.
  3. Mi-ai usurat munca, pwp scriptere.
  4. Am incercat sa trec comanda asta in ce ve-ti vedea mai jos. CMD:etuning(playerid, params[]) { if(sscanf(params, "s[16]", params)) { SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /etuning [option]"); SendClientMessage(playerid, COLOR_WHITE, "OPTIONS: x | y | z | done"); } else if(!strcmp(params, "x", true)) { PlayerData[playerid][EditStatus] = 1; } else if(!strcmp(params, "y", true)) { PlayerData[playerid][EditStatus] = 2; } else if(!strcmp(params, "z", true)) { PlayerData[playerid][EditStatus] = 3; } /*else if(!strcmp(params, "rx", true)) { PlayerData[playerid][EditStatus] = 4; } else if(!strcmp(params, "ry", true)) { PlayerData[playerid][EditStatus] = 5; } else if(!strcmp(params, "rz", true)) { PlayerData[playerid][EditStatus] = 6; }*/ else if(!strcmp(params, "done", true)) { PlayerData[playerid][EditStatus] = 0; KillTimer(PlayerData[playerid][EditingTimer]); SaveTuning(playerid); } return 1; } Noua comanda, nu cred ca am trecut-o bine, am incercat singur, tutoriale nu am gasit, deci, help my please?: if(strcmp(cmd, "/etuning", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 4) { SendClientMessage(playerid, COLOR_GRAD2, " You are not an Admin !"); return 1; } new tunninge[256]; if(strtok(cmdtext, idx)) { tunninge = strtok(cmdtext, idx); if(strlen(tunninge)) { SendClientMessage(playerid, COLOR_WHITE, "|__________________ Edit __________________|"); SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /etuning [option]"); SendClientMessage(playerid, COLOR_WHITE, "OPTIONS: x | y | z | done"); SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "[Usage]: /etuning [option]"); return 1; } else if(strcmp(new tunninge,"x",true) == 0) { PlayerData[playerid][EditStatus] = 1; } else if(strcmp(new tunninge,"y",true) == 0) { PlayerData[playerid][EditStatus] = 2; } else if(strcmp(new tunninge,"z",true) == 0) { PlayerData[playerid][EditStatus] = 3; } /*else if(strcmp(new tunninge,"ex",true) == 0) { PlayerData[playerid][EditStatus] = 4; } else if(strcmp(new tunninge,"ry",true) == 0) { PlayerData[playerid][EditStatus] = 5; } else if(strcmp(new tunninge,"rz",true) == 0) { PlayerData[playerid][EditStatus] = 6; }*/ else if(strcmp(new tunninge,"done",true) == 0) { PlayerData[playerid][EditStatus] = 0; KillTimer(PlayerData[playerid][EditingTimer]); SaveTuning(playerid); format(string, sizeof(string), "You've adjusted the: %s.", tunninge); SendClientMessage(playerid, COLOR_WHITE, string); } } } return 1; }
  5. O intrebare, de unde pot schimba interiorul, gen spawn-ul in garaj, alea alea? Pls help.
  6. E pe zcmd/sscanf/nsh exact, faza e ca nu folosesc zmcd, vreau sa o mut pe strcmd sau ce o fi gen comanda asta :> if(strcmp(cmd, "/tuningcmds", true) == 0) { SendClientMessage(playerid,COLOR_YELLOW,"/tuning /etuning /rtuning /vehicle"); SendClientMessage(playerid,COLOR_YELLOW,"After using /tuning use /etuning X/Y/Z/RX/RY/RZ and then use A and D to move the object."); return 1; }
  7. Comanda asta vreau sa o trec pe strcmd, aveti 2 exeple, eu am trecuto rau, primul e cum arata comanda, al doilea e cum as vrea sa arate, dar nu-mi iese, nu folosesc zcmd, imi da eroare la params.
×
×
  • 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.