-
Posts
1.557 -
Joined
-
Last visited
-
Days Won
28
Content Type
Profiles
Forums
News
Documentation
Everything posted by Джо
-
Asculta aici cum sa pui /ad pe timp fara a mai da /cancel ad( ca admin) In primul rand pui new-urile: [pawn]new ADTimmer[MAX_PLAYERS];//ad timer new ADTimmer2[MAX_PLAYERS];//ad timer[/pawn] Bun acuma pui comanda asta: [pawn]if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0) { if(IsPlayerConnected(playerid)) if(PlayerToPoint(2.0,playerid,648.340087,-1357.425415,13.571000)) { if(ADTimmer[playerid] == -1)//adtimer { SendClientMessage(playerid,COLOR_RED,"Poti da /ad doar o data pe minut !"); } else if(ADTimmer2[playerid] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[130]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GREY, "Type: (/ad)vertise [advert text]"); return 1; } if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1)) { format(string, sizeof(string), "Anuntul tau va aparea in %d secunde, persoanelor de pe server !", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; } new payout = idx * 25; if(PlayerInfo[playerid][pCash] < payout) { format(string, sizeof(string), "* Ai folosit %d caractere si ai platit %d Lei.", offset, payout); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } GivePlayerCash(playerid, -payout); SBizzInfo[7][sbTill] += payout; ExtortionSBiz(7, payout); SBizzInfo[7][sbProducts]--; if(aTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 60 de secunde pentru urmatorul anunt !"); format(string, sizeof(string), "{2BC700}Anunt: %s, {F2EE00}By: %s Tel: %d", result, sendername,PlayerInfo[playerid][pPnumber]); SendClientMessageToAll(COLOR_WHITE, string); aTime[playerid] = 1; SetTimerEx("Ad", 60000, 0, "%d", playerid); format(string, sizeof(string), "~r~Ai platit %d Lei~n~~w~Mesajul Contine: %d Caractere", payout, idx); NextAd[playerid] = 1; GameTextForPlayer(playerid, string, 5000, 5); } else if(PlayerToPoint(2.0,playerid, 2368.9646,2121.4871,10.8401)) { if(PlayerInfo[playerid][pLevel] < 3) { SendClientMessage(playerid, COLOR_GREY, "Ai nevoie de level 3 pentru a scrie un anunt !"); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nu poti scrie un anunt ai mute"); return 1; } if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "Nu esti logat !"); 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_GREY, "Type: (/ad)vertise [advert text]"); return 1; } if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1)) { format(string, sizeof(string), "Anuntul tau va aparea in %d secunde, persoanelor de pe server !", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; } new payout = idx * 25; if(PlayerInfo[playerid][pCash] < payout) { format(string, sizeof(string), "* Ai folosit %d caractere si ai platit %d Lei.", offset, payout); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } GivePlayerCash(playerid, -payout); SBizzInfo[13][sbTill] += payout; ExtortionSBiz(13, payout); SBizzInfo[13][sbProducts]--; NextAd[playerid] = 1; if(aTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 60 de secunde pentru urmatorul anunt !"); format(string, sizeof(string), "{2BC700}Anunt: %s, {F2EE00}By: %s Tel: %d", result, sendername,PlayerInfo[playerid][pPnumber]); SendClientMessageToAll(COLOR_WHITE, string); aTime[playerid] = 1; SetTimerEx("Ad", 60000, 0, "%d", playerid); format(string, sizeof(string), "~r~Ai platit %d Lei~n~~w~Mesajul Contine: %d Caractere", payout, idx); GameTextForPlayer(playerid, string, 5000, 5); } else { SCM(playerid,COLOR_LIGHTRED,"Nu esti la agentie de anunturi."); } return 1; }[/pawn]
-
Numai la /v tow1 sau la toate care da /v towx?
-
Downloadeaza includeul ini.
-
Incearca [pawn]CMD:fdeposit(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(DepositMoney(playerid)) { new x = PlayerInfo[playerid][pMember],string[100],cashdeposit; if(sscanf(params, "d", cashdeposit)) return SendClientMessage(playerid, 0xFFFFFFFF, "{8EC837}Scrie:{FFFFFF} /fdeposit <money>"); if(cashdeposit < 1 || cashdeposit > 10000000) return SCM(playerid,COLOR_WHITE,"{FFB870}Money limit is $1 - $10,000,000."); if(IsPlayerInRangeOfPoint(playerid,50.0,DynamicFactions[x][fcX],DynamicFactions[x][fcY],DynamicFactions[x][fcZ])) { if(GetPlayerCash(playerid) >= cashdeposit) { new oldbalance = DynamicFactions[x][fBank]; DynamicFactions[x][fBank] += cashdeposit; GivePlayerCash(playerid, cashdeposit); Update(playerid,pCashx); new str[184]; format(str,sizeof(str),"UPDATE `factions` SET `Bank`='%d' WHERE `ID`='%d'",DynamicFactions[x][fBank],x); mysql_query(SQL,str); SendClientMessage(playerid, CRISTIAN, "Safebox:"); format(string, sizeof(string), " Old Balance: $%s", FormatNumber(oldbalance)); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), " Deposit: +$%s ", FormatNumber(cashdeposit)); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), " New balance: $%s", FormatNumber(DynamicFactions[x][fBank])); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You don't have that amount of money."); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in HQ."); } } return 1; }[/pawn]
-
Incearca cu Asta
-
Este definit printr-un include exemplu streamer,updateaza streamerul.
-
Ai papat o acoalada.
-
Incearca tutorialul asta: http://www.sa-mp.ro/forum/index.php?topic=26570.0
-
Posteaza tot ce tine de sistem,sau ala e tot ce ai postat prima data?
-
Instaleaza NetFramework 3.5,si ce windows ai,posibil ca la windows 8 sa nu mearga Map Editor.
-
Tu gandesti ce ai spus? Ia incearca: [pawn]CMD:gotosf( playerid, params[ ] ) { if(PlayerInfo[ playerid ][ AdminLevel] >= 1 )//Setezi levelul de admin. { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -1417.0,-295.8,14.1); } else { SetPlayerPos(playerid, -1417.0,-295.8,14.1); } else return SendClientMessage(playerid, 0xFF0000AA, "Nu ai nivelul corespunzator pentru aceasta comanda"); } CMD:makeadmin( playerid,params[ ] ) { new id, alvl ; if ( IsPlayerAdmin( playerid ) )//Ai facut comanda ca RCON... { if ( sscanf( params, "ui", id, alvl ) ) return SendClientMessage( playerid, -1, "Comanda este: /makeadmin <playerid><admin level>" ) ; if ( alvl < 0 || alvl > 10 ) return SendClientMessage( playerid, -1, "0<->10" ) ; PlayerInfo[ id ][ AdminLevel ] = alvl ; SendClientMessage( id, -1, "Esti admin!" ) ; } else return SendClientMessage(playerid,-1, "Nu esti rcon!"); } CMD:jetpack( playerid, params[ ] ) { if ( PlayerInfo[ playerid ][ AdminLevel] >= 1 )//Setezi tu adminul... { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); SetPlayerPos(playerid, X, Y, Z); CreatePickup(370,2,X,Y,Z); SendClientMessage(playerid, Gri, "* Spawned Jetpack"); } else return SendClientMessage( playerid, -1, "Nu esti administrator!" ) ; } CMD:fixveh( playerid, params[ ] ) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[ playerid ][ AdminLevel] >= 1 )//Setezi tu adminul... { if(IsPlayerInAnyVehicle(playerid)) { RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, 0xFFFFFFFF, "Vehicul reparat !"); } } else SendClientMessage(playerid, 0xFFFFFFFF, "Nu esti autorizat sa folosesti aceasta comanda!"); } return 1; } CMD:getcar(playerid, params[]) { new carid; if(sscanf(params, "i", carid)) return SendClientMessage(playerid, ~1, "USAGE: /getcar [carid]"); if(carid > MAX_VEHICLES) return SendClientMessage(playerid, ~1, "That vehicle does not exists."); new Float: gPos[3]; GetPlayerPos(playerid, gPos[0], gPos[1], gPos[2]); SetVehiclePos(carid, gPos[0] + 2, gPos[1], gPos[2]); return 1; }[/pawn]
-
Posteaza intreaga comanda.
-
Problema G la intrare in masina ca pasager sau ca sofer cu f
Джо replied to Settings's question in Arhivă probleme
Cauta in modul tau RemovePlayerFromVehicle(playerid); si mai am o intrebare,ai adaugat ceva un filescript sau un include sau cand l-ai luat asa era bugul? -
Off:Nu vorbi aiurea ca nu e de la nici un filescript. E de la streamer problema!Stiu sigur,fiindca mi s-a intamplat si mie,updateaza streamerul la 2.7.2. Dupa ce ai updatat serverul la streamer 2.7.2 daca tot nu iti apar obiectele pune -1, -1, -1, 500); la fiecare obiect. Exemplu: Ai CreateDynamicObject(1685, 79.90996, -178.70671, 1.28906, 356.85840, 0.00000, 3.14159); obiectul.Tu pui: CreateDynamicObject(1685, 79.90996, -178.70671, 1.28906, 356.85840, 0.00000, 3.14159, -1, -1, -1, 500); Atentie! trebuie sa pui la fiecare obiect -1, -1, -1, 500); ca sa iti apara toate obiectele pe server,e mult de munca daca ai multe obiecte pe server dar munca ta va fi rasplatita. La mine a mers a doua optiune.
-
Sterge SetPlayerCameraPos(playerid, coordonatele); SetPlayerCameraLookAt(playerid, coordonatele); Nu ai nevoie de ele dupa care posteaza InterpolateCameraPos
-
Ai gresit sectiunea,si folosestel pe cel al lui Gireada,chiar daca are cateva buguri minore,le poti fixa tu...Are si acreatecar si tot ce vrei.
-
Problema G la intrare in masina ca pasager sau ca sofer cu f
Джо replied to Settings's question in Arhivă probleme
Posibil sa fie de la San Andreas-ul tau,ai incercat si cu alte servere?La fel tot asa face? Daca nu cauta in modul tau RemovePlayerFromVehicle(playerid); -
http://www.solidfiles.com/d/wBqp/core.inc
-
Downloadeazati de pe net core.inc.
-
Spunene ce ai facut nu ne da numai liniile si erorile,spune si ce ai facut inainte si daca tot postezi linia,posteaza tot ce tine de acel public.
-
Pentru orice eventualitate,logheazate si ca RCON:)
-
Off:Iote ma PHX:X Te ajut cu cea mai mare placere daca imi bagi inca odata refrenu:)) ON: Ia nativekheker.dll si posteaza aici ce iti da in server.log. Inca ceva...I-ai facut setarile la sistem?
-
Ai cumva din intamplare si MTA in folderul unde ai si Map Editor-ul?
-
Nu sunt nici un Cuzman,fa ce ti-am spus....Si spune unde ai pus RemoveBuidilingForPlayer?
