Jump to content

scoverga

Membru
  • Posts

    2
  • Joined

  • Last visited

    Never

About scoverga

  • Birthday 10/27/1998

scoverga's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. dandrew12, DROP = şterge. Nu mai copia orbeşte în viitor fără să ştii ce copiezi.
  2. Încearcă asta şi spune-mi dacă merge: [pawn]if(strcmp(cmd, "/tod", true) == 0) { if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GRAD1, "{5CAD5C}Error: Your admin level isn't high enough to use this command."); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Syntax: /tod [timeofday] (0-23)"); new hour; hour = strval(tmp); SetWorldTime(hour); format(string, sizeof(string), " Time set to %d Hours.", hour); BroadCast(COLOR_GRAD1, string); return 1; } [/pawn] p.s: nu-ţi trebuie IsPlayerConnected la asta, mai ales că în parametri nu ceri nici un playerid. ce faci tu acolo era un fix pentru un bug din SA-MP 0.1b când comenzile trimise de cineva puteau fi executate după ce au plecat de pe server, dar au trecut ceva ani de atunci :)
×
×
  • 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.