Jump to content

IstuntmanI

Membru
  • Posts

    3.897
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by IstuntmanI

  1. http://www.sa-mp.ro/forum/index.php/topic,9632.msg57507.html#msg57507 Foloseste acest butonas: Search: http://www.sa-mp.ro/forum/index.php?action=search2
  2. Nu ai definit IsNumeric, pune asta la sfarsitul scriptului: stock IsNumeric(const stringin[]) { new length=strlen(stringin); if (length==0) return false; for (new i = 0; i < length; i++) { if ( (stringin[i] > '9' || stringin[i] < '0' && stringin[i]!='-' && stringin[i]!='+') // Not a number,'+' or '-' || (stringin[i]=='-' && i!=0) // A '-' but not at first. || (stringin[i]=='+' && i!=0) // A '+' but not at first. ) return false; } if (length==1 && (stringin[0]=='-' || stringin[0]=='+')) return false; return true; } Ti-am mai zis asta si in alt topic de-al tau, dar tu nu, batman, batman xD
  3. IstuntmanI

    Intrebari

    Te-ai felicitat singur ? xD Good for noobs xD
  4. Ca sa ai ce copia de la scripturile dinainte.
  5. Vai de identitarea voastra ... in rest e bine, nu stiu daca merge bine scrisul in fisiere, dar restul e bine, 4/5 ... idee copiata.
  6. =)))))))))))))))))))))))) Uite IsNumeric aici, il adaugi la sfarsitul scriptului: stock IsNumeric(const stringin[]) { new length=strlen(stringin); if (length==0) return false; for (new i = 0; i < length; i++) { if ( (stringin[i] > '9' || stringin[i] < '0' && stringin[i]!='-' && stringin[i]!='+') // Not a number,'+' or '-' || (stringin[i]=='-' && i!=0) // A '-' but not at first. || (stringin[i]=='+' && i!=0) // A '+' but not at first. ) return false; } if (length==1 && (stringin[0]=='-' || stringin[0]=='+')) return false; return true; }
  7. E bun si CODEEEEEEEEEnu te mai baga in seama mereu ... Da, imi place WWE, si ? )
  8. Eu unul n-am inteles nimic din ce ai zis.
  9. Si pe romaneste ?
  10. Daca as fi stat sa-i explic toate alea dura ceva, asa ca mai bine i-am dat link de la wiki si gata ... cautasem si un OnPlayerRequestClass maker, dar nu-l gasisem ... uite-l acuma: http://forum.sa-mp.com/showthread.php?t=140360 . Cu FS-ul asta e cel mai simplu sa creezi OnPlayerRequestClass-uri.
  11. Tare, te-ai folosit si de mapa San Andreasului, 4/5 :D
  12. Incearca asa: if(strcmp(cmdtext, "/bstunt1", true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { TogglePlayerControllable(playerid,0); SetTimerEx("LoadObjects",3000,false,"i",playerid); SetVehiclePos(GetPlayerVehicleID(playerid),530.6929,-1012.7028,1773.1597); return SetVehicleZAngle(GetPlayerVehicleID(playerid),270.9936); } SetTimerEx("LoadObjects",3000,false,"i",playerid); SetPlayerPos(playerid,530.6929,-1012.7028,1773.1597); SetPlayerFacingAngle(playerid,270.9936); return SetPlayerInterior(playerid,0); } Daca tot nu merge posteaza functia LoadObjects pentru ca la mine merge asa fara sa am functia LoadObjects.
  13. Deci sa inteleg: tu puteai sa tii servere si acum nu mai poti ? La fel am patit si eu pana acum o saptamana-doua, era de la un virus. Vezi sa nu ai virusi, ia-ti AVG, fa scan la tot PC ... cu el am scapat de virusul din cauza caruia nu puteam tine servere.
  14. Data viitoare fara 2x-3x+ post. Adauga asta pe la finalul scriptului: ReturnUser(text[], playerid = INVALID_PLAYER_ID) { new pos = 0; while (text[pos] < 0x21) // Strip out leading spaces { if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text pos++; } new userid = INVALID_PLAYER_ID; if (IsNumeric(text[pos])) // Check whole passed string { // If they have a numeric name you have a problem (although names are checked on id failure) userid = strval(text[pos]); if (userid >=0 && userid < MAX_PLAYERS) { if(!IsPlayerConnected(userid)) { /*if (playerid != INVALID_PLAYER_ID) { SendClientMessage(playerid, 0xFF0000AA, "User not connected"); }*/ userid = INVALID_PLAYER_ID; } else { return userid; // A player was found } } /*else { if (playerid != INVALID_PLAYER_ID) { SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID"); } userid = INVALID_PLAYER_ID; } return userid;*/ // Removed for fallthrough code } // They entered [part of] a name or the id search failed (check names just incase) new len = strlen(text[pos]); new count = 0; new name[MAX_PLAYER_NAME]; for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { GetPlayerName(i, name, sizeof (name)); if (strcmp(name, text[pos], true, len) == 0) // Check segment of name { if (len == strlen(name)) // Exact match { return i; // Return the exact player on an exact match // Otherwise if there are two players: // Me and MeYou any time you entered Me it would find both // And never be able to return just Me's id } else // Partial match { count++; userid = i; } } } } if (count != 1) { if (playerid != INVALID_PLAYER_ID) { if (count) { SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch"); } else { SendClientMessage(playerid, 0xFF0000AA, "No matching user found"); } } userid = INVALID_PLAYER_ID; } return userid; // INVALID_USER_ID for bad return }
  15. Aoleo, copiezi stilul de postare al lui Zh3r0 acum, MAI TERMINATI MA ODATA, GANDITI SI FACETI CEVA UNIC SI VOI!!! 3/5, nu e cine stie ce.
  16. 1.www.convertffs.com - o convertezi 2.O pui in server sub OnGameModeInit ... 3.CAUTA!
  17. http://wiki.sa-mp.com/wiki/OnPlayerRequestClass + http://wiki.sa-mp.com/wiki/SetPlayerPos http://wiki.sa-mp.com/wiki/SetPlayerFacingAngle http://wiki.sa-mp.com/wiki/SetPlayerCameraPos http://wiki.sa-mp.com/wiki/SetPlayerCameraLookAt
  18. 5/5
  19. IstuntmanI

    STELUTZA

    Voi chiar copiati totul ... Foloseste fontul 0 la text si scrii ].
  20. http://wiki.sa-mp.com/wiki/ManualVehicleEngineAndLights + http://wiki.sa-mp.com/wiki/SetVehicleParamsEx
  21. Si care ar fi supararea din asta ? Asa e, sunt cei mai buni.
  22. Foarte tare, cred ca o sa-l folosesc :X
  23. Dar din ce ai zis acolo cu: "sterge toate ///////////// de acolo" reiese ca habar n-ai scripting. PS: Akord, mai scuteste-ne. Fa-ti un forum doar al tau pe care sa intre doar ratatii.
  24. Ce porcarie ai putut sa zici. Arata-ne liniile de mai sus de
  25. Lucian si TheBoss, nu va mai bagati daca nu stiti. La OnPlayerSpawn adauga SetPlayerInterior(playerid, 0); si daca tot nu merge vezi daca sunt bune coordonatele.
×
×
  • 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.