Jump to content

ToX1c

Membru
  • Posts

    245
  • Joined

  • Last visited

    Never

ToX1c's Achievements

Rising Star

Rising Star (9/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. ToX1c

    /findcar

    Tot nu vrea sa mearga daca am un checkpoint pe mapa , daca dau prima data /findcar imi apare checkpointul si dupa dau iar imi apare mesajul sa dau /killcp , dar daca am alt checkpoint de la /jobs merge sa dau /findcar si imi dispare acel checkpoint de la /jobs si ma duce la masina
  2. ToX1c

    /findcar

    Ma poate ajuta si pe mine cineva?
  3. ToX1c

    /findcar

    Imi zice ca nu am nicio masina personala si eu am :(
  4. ToX1c

    /findcar

    C:\Users\Desktop\sG\gamemodes\rp.pwn(13285) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Linia else SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !");
  5. ToX1c

    /findcar

    http://pastebin.com/kAz2ct5y http://pastebin.com/nEiJBuT5
  6. ToX1c

    /findcar

    E pus uitete la finalul scriptului
  7. ToX1c

    /findcar

    Am facut ceva de genu da imi apare 2 mesaje.. CMD:findcar(playerid, params[]) { new carslot; if(sscanf(params, "d", carslot)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/findcar [1/2/3/4]"); { if(CP[playerid] == 0) { if(playerVariables[playerid][pCarModel1] >= 1 || playerVariables[playerid][pCarModel2] >= 1 || playerVariables[playerid][pCarModel3] >= 1 || playerVariables[playerid][pCarModel4] >= 1) { if(carslot == 1) { GetVehiclePos(playerVariables[playerid][pCarID1], playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel1] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 2) { GetVehiclePos(playerVariables[playerid][pCarID2], playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel2] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 3) { GetVehiclePos(playerVariables[playerid][pCarID3], playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel3] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 4) { GetVehiclePos(playerVariables[playerid][pCarID4], playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel4] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } } else SendClientMessage(playerid, COLOR_GREY, "Invalid car slot id."); } else SendClientMessage(playerid, COLOR_GREY, "You don't own a vehicle."); } SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !"); return 1; } http://tinypic.com/view.php?pic=1597jp&s=8#.U2QUZoF_sQl
  8. ToX1c

    /findcar

    Nick: ToX1c Problema:Salut cum as putea face si eu la comanda /findcar daca este un checkpoint pe mapa sa nu pot sa dau Lini/script: CMD:findcar(playerid, params[]) { if(sweep[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE" Nu poti folosi acum aceasta comanda"); return 1; } new carslot; if(sscanf(params, "d", carslot)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/findcar [1/2/3/4]"); { if(CP[playerid] == 0) { if(playerVariables[playerid][pCarModel1] >= 1 || playerVariables[playerid][pCarModel2] >= 1 || playerVariables[playerid][pCarModel3] >= 1 || playerVariables[playerid][pCarModel4] >= 1) { if(carslot == 1) { GetVehiclePos(playerVariables[playerid][pCarID1], playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel1] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 2) { GetVehiclePos(playerVariables[playerid][pCarID2], playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel2] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 3) { GetVehiclePos(playerVariables[playerid][pCarID3], playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel3] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 4) { GetVehiclePos(playerVariables[playerid][pCarID4], playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel4] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } } else SendClientMessage(playerid, COLOR_GREY, "Invalid car slot id."); } else SendClientMessage(playerid, COLOR_GREY, "You don't own a vehicle."); } SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !"); return 1; } Ai incercat sa rezolvi singur ?: Am incercat eu sa fac da nu merge imi apare asa http://tinypic.com/view.php?pic=1597jp&s=8#.U2QUZoF_sQl
  9. ToX1c

    /findcar

    Salut cum as putea face si eu la comanda /findcar daca este un checkpoint pe mapa sa nu pot sa dau Am incercat eu sa fac da nu merge http://tinypic.com/view.php?pic=1597jp&s=8#.U1k571V_tCI CMD:findcar(playerid, params[]) { if(sweep[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE" Nu poti folosi acum aceasta comanda"); return 1; } new carslot; if(sscanf(params, "d", carslot)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/findcar [1/2/3/4]"); { if(CP[playerid] == 0) { if(playerVariables[playerid][pCarModel1] >= 1 || playerVariables[playerid][pCarModel2] >= 1 || playerVariables[playerid][pCarModel3] >= 1 || playerVariables[playerid][pCarModel4] >= 1) { if(carslot == 1) { GetVehiclePos(playerVariables[playerid][pCarID1], playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel1] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 2) { GetVehiclePos(playerVariables[playerid][pCarID2], playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel2] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 3) { GetVehiclePos(playerVariables[playerid][pCarID3], playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel3] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 4) { GetVehiclePos(playerVariables[playerid][pCarID4], playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel4] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } } else SendClientMessage(playerid, COLOR_GREY, "Invalid car slot id."); } else SendClientMessage(playerid, COLOR_GREY, "You don't own a vehicle."); } SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !"); return 1; }
  10. Ma poate ajuta cineva?
  11. Salut , cum as putea face la Masinile cu pPcarkey3 sa iti trebuieasca donate rank if(listitem==1) { if (GetPlayerMoney(playerid) >= 90000) { GivePlayerMoney(playerid,-90000); //bullet new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new thiscar = CreateVehicle(541,X,Y,Z,1,0,0,99999999); if(PlayerInfo[playerid][pPcarkey] == -1) { PlayerInfo[playerid][pPcarkey] = thiscar; } else if(PlayerInfo[playerid][pPcarkey2] == -1) { PlayerInfo[playerid][pPcarkey2] = thiscar; } else if(PlayerInfo[playerid][pPcarkey3] == -1) { PlayerInfo[playerid][pPcarkey3] = thiscar; } else { return 1; } CarInfo[thiscar][cOwned] = 1; CarInfo[thiscar][cModel] = 541; CarInfo[thiscar][cColorOne] = 0; CarInfo[thiscar][cColorTwo] = 0; CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1; CarInfo[thiscar][cValue] = 90000; CarInfo[thiscar][cLock] = 0; CarInfo[thiscar][paintjob] = -1; PutPlayerInVehicle(playerid,thiscar,0); GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(CarInfo[thiscar][cOwner], sendername, 0, strlen(sendername), 999); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /v park!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Felicitari ti-ai cumparat o masina noua!"); SendClientMessage(playerid, COLOR_GRAD2, "Scrie /v pentru manualul masini!"); format(CarInfo[thiscar][cDescription], 32, "Bullet"); OnCarUpdate(); SavePlayerData(playerid); } else { SendClientMessage(playerid, COLOR_WHITE, " Nu ai suficienti bani pentru a cumpara masina aceasta !"); } }
  12. Salut cand scriu pe /n nu imi apare nimic , poate cineva sa ma ajute? if(strcmp(cmd, "/n", true) == 0 || strcmp(cmd, "/newbie", true) == 0) { if(IsPlayerConnected(playerid)) { if(!gPlayerLogged[playerid]) { SendClientMessage(playerid, COLOR_GREY, "Nu te-ai logat."); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_MEDIC_COLOR, MUTE_TEXT); return 1; } if(NewbieChat) return SendClientMessage(playerid,COLOR_GRAD1,"Canalul de conversatii pentru incepatori a fost dezactivat de un administrator."); if(NewbieCountDown[playerid]) return SendClientMessage(playerid,COLOR_GREY,"Trebuie sa astepti 10 secunde pentru a utiliza din nou canalul de conversatii pentru incepatori."); if(gNewbie[playerid]) return 1; GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "UTILIZARE: (/n)ewbie [newbie chat]"); return 1; } result[0] = toupper(result[0]); new l = PlayerInfo[playerid][pLeader]; new tt[24]; if(l == 1) tt = "PD"; else if(l == 2) tt = "F.B.I"; else if(l == 3) tt = "NG"; else if(l == 4) tt = "Medic"; else if(l == 5) tt = "La Cosa Nostra"; else if(l == 6) tt = "Yakuza"; else if(l == 7) tt = "Mayor"; else if(l == 8) tt = "Hitman"; else if(l == 9) tt = "UST"; else if(l == 10) tt = "Smugglers"; else if(l == 11) tt = "SI"; else if(l == 12) tt = "SFR"; else if(l == 13) tt = "Grove"; else if(l == 14) tt = "Ballas"; else if(l == 15) tt = "DNB"; GetPlayerName(playerid,sendername,sizeof(sendername)); if(FindIP(result)) { GetPlayerName(playerid,sendername,sizeof sendername); format(string,sizeof string,"[AdmWarning] %s a scris un IP:",sendername); SendAdminMessage(0xF7F99BFF,string); format(string,sizeof string,"\"%s\"",result); SendAdminMessage(0xF7F99BFF,string); } if(PlayerInfo[playerid][pLevel] < 4 && !PlayerInfo[playerid][pAdmin] && !PlayerInfo[playerid][pLeader]) NewbieCountDown[playerid] = true, SetTimerEx("Newbiecountdown",10000,false,"d",playerid); if(PlayerInfo[playerid][pLevel] < 4 && !PlayerInfo[playerid][pAdmin] && !PlayerInfo[playerid][pHelper] && !PlayerInfo[playerid][pLeader]) { format(string,sizeof(string),"(N) Incepator de level %i %s: %s",PlayerInfo[playerid][pLevel],sendername,(result)); } else if(PlayerInfo[playerid][pAdmin] > 0) { format(string,sizeof(string),"(N) Admin Level %i %s: %s",PlayerInfo[playerid][pAdmin],sendername,(result)); } else if(PlayerInfo[playerid][pHelper] > 0) { format(string,sizeof(string),"(N) Helper Level %i %s: %s",PlayerInfo[playerid][pAdmin],sendername,(result)); } else if(PlayerInfo[playerid][pLeader] > 0) { format(string,sizeof(string),"(N) Lider %s %s: %s",tt,sendername,(result)); } else return 1; SendNewbieMessage(0xBFF55AFF,string); if(!gNewbie[playerid]) printf("(N) %s",string); } }
  13. Am rezolvat , uitasem de <
  14. Salut all , am vrut sa fac si eu la comanda /withdraw , cei care nu au 4 rp-uri sa nu poata sa dea , si tot nu merge CMD:withdraw(playerid, params[]) { new string[256]; if(PlayerInfo[playerid][pExp] == 4) return SendClientMessage(playerid, COLOR_GRAD1, "4 Respect Points pentru a folosi comanda !"); if(PlayerInfo[playerid][pLocal] == 103) { if(sscanf(params, "i", withdraw)) { SendClientMessage(playerid, COLOR_ORANGE, "{F97804}USAGE:{B4B5B7}{FFFFFF} /withdraw [amount]"); format(string, sizeof(string), "You Have %s in your account.", FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (withdraw > PlayerInfo[playerid][pAccount] || withdraw < 1) { SendClientMessage(playerid, COLOR_GRAD1, "You dont have that much."); return 1; } ConsumingMoney[playerid] = 1; PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + withdraw; PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-withdraw; format(string, sizeof(string), "You Have Withdrawn %s from your account Total: %s ", FormatMoney(withdraw),FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); } else if(PlayerToPoint(1.5, playerid, -1973.2712,117.3730,27.6875)) { if(sscanf(params, "i", withdraw)) { SendClientMessage(playerid, COLOR_ORANGE, "{F97804}USAGE:{B4B5B7}{FFFFFF} /withdraw [amount]"); format(string, sizeof(string), "You Have %s in your account.", FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (withdraw > PlayerInfo[playerid][pAccount] || withdraw < 1) { SendClientMessage(playerid, COLOR_GRAD1, "You dont have that much !"); return 1; } ConsumingMoney[playerid] = 1; PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + withdraw; PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-withdraw; format(string, sizeof(string), "You Have Withdrawn %s from your account Total: %s ", FormatMoney(withdraw),FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); } else { SendClientMessage(playerid, COLOR_GRAD1, "You are not at the Bank / ATM !"); } return 1; }
  15. ToX1c

    Sistem Sweeper

    Care ma puteti ajuta si pe mine?
×
×
  • 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.