-
Posts
716 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by Diabolik
-
Dati T.C ma ajutat pe mess.
-
Are cumva o legatura cu /time? Si am gasit ceva de genu: public settime(playerid) { new string[256],year,month,day,hours,minutes,seconds; getdate(year, month, day), gettime(hours, minutes, seconds); format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); TextDrawSetString(Date, string); format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds); TextDrawSetString(Times, string); }
-
Vreau si eu sa scot data de acolo si nustiu cum sa fac am cautat in gm dar nu iam dat de cap ma ajutati? poza: http://imageshack.us/photo/my-images/210/samp008dh.png/
-
Intr-un adevar nu este textdraw facut de mine dar lam pus in FS si am inbunatatit culorile la steag. La v2 o sa fie2 steaguri , Romania si al Italiei.
-
Steagul Romaniei Timp de lucru: 8 - 10 minute Credite:RuSke Poza: Link: http://imageshack.us/photo/my-images/560/samp006wf.png/ Download: http://zipansion.com/29GL3 P.S la v2.0 o sa fac si steagul Italiei.
-
Frumos Fs 10/10. :cheesy:
-
1/5 pentru curaj
-
Cum pot sa rezolv eroiile astea: C:\Documents and Settings\BogdaneL\My Documents\Downloads\Indungi HD Rp\gamemodes\Indungi.pwn(4459) : error 029: invalid expression, assumed zero C:\Documents and Settings\BogdaneL\My Documents\Downloads\Indungi HD Rp\gamemodes\Indungi.pwn(4459) : error 029: invalid expression, assumed zero C:\Documents and Settings\BogdaneL\My Documents\Downloads\Indungi HD Rp\gamemodes\Indungi.pwn(4459) : error 017: undefined symbol "srclen" C:\Documents and Settings\BogdaneL\My Documents\Downloads\Indungi HD Rp\gamemodes\Indungi.pwn(4459) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Linia: 4459 stock right(source[], len) { new retval[MAX_STRING], srclen; srclen = strlen(source); strmid(retval, source, srclen - len, srclen, MAX_STRING); return retval; } P.S Ai inchis topicul anterior.
-
Cum pot sa scap si eu erorile astea: C:\DOCUME~1\BogdaneL\MYDOCU~1\DOWNLO~1\GAMESP~1\pawno\include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") C:\Documents and Settings\BogdaneL\My Documents\Downloads\GameSpeed HDRP\gamemodes\GameHDRP.pwn(6827) : error 004: function "CreateMapIcon" is not implemented C:\Documents and Settings\BogdaneL\My Documents\Downloads\GameSpeed HDRP\gamemodes\GameHDRP.pwn(6831) : error 004: function "CreateMapIcon" is not implemented C:\Documents and Settings\BogdaneL\My Documents\Downloads\GameSpeed HDRP\gamemodes\GameHDRP.pwn(6837) : error 004: function "CreateMapIcon" is not implemented C:\Documents and Settings\BogdaneL\My Documents\Downloads\GameSpeed HDRP\gamemodes\GameHDRP.pwn(6841) : error 004: function "CreateMapIcon" is not implemented C:\Documents and Settings\BogdaneL\My Documents\Downloads\GameSpeed HDRP\gamemodes\GameHDRP.pwn(15156) : warning 219: local variable "playermoney" shadows a variable at a preceding level C:\Documents and Settings\BogdaneL\My Documents\Downloads\GameSpeed HDRP\gamemodes\GameHDRP.pwn(50197) : warning 235: public function lacks forward declaration (symbol "CoronosClose") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Va rog ajutati-ma.
-
Nici eu nu cred ca e facut de tine :-( daca este ai 4.5/5
-
Frumos GM 3/5 .
-
Gata me-am pus Anti-MoneyCheat.
-
Ban: if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, " Foloseste: /ban [Player id] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 3) { if(PlayerInfo[playerid][pAdmin] < PlayerInfo[giveplayerid][pAdmin]) { SendClientMessage(playerid,COLOR_GREY,"Nu poti bana un admin mai mare ca tine!"); return 1; } if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); 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, " Foloseste: /ban [Player id] [Motiv]"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), "GameSpeed: %s a fost banat de catre %s, Motiv: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "GameSpeed: %s a fost banat de catre %s, Motiv: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); format(string,sizeof(string),"Motiv: %s | A bant - %s", (result), sendername); BanEx(giveplayerid,string); return 1; } }//not connected } else { format(string, sizeof(string), " %d Nu este un player activ.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } Comanda kick: //----------------------------------[Kick]------------------------------------------------ if(strcmp(cmd, "/kick", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, " {FFA500}[INFO]:{ffffff} /kick [Player id] [Motiv]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1 ) { if(IsPlayerConnected(giveplayerid)) { if(PlayerInfo[playerid][pAdmin] < PlayerInfo[giveplayerid][pAdmin]) { SendClientMessage(playerid,COLOR_GREY,"Nu poti da kick/ban unui admin mai mare ca tine!"); return 1; } if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new kickstring[64]; 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, " {FFA500}[INFO]:{ffffff} /kick [Player id] [reason]"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), " %s - a primit kick de la %s | Motiv: %s | Data: %d-%d-%d", giveplayer, sendername, (result),year, month, day); SendClientMessageToAll(COLOR_RED, string); KickLog(string); SendClientMessage(giveplayerid, COLOR_GREEN, "------------------------------------------"); format(kickstring, sizeof(kickstring), "Ti-a dat kick: %s", sendername); SendClientMessage(giveplayerid, COLOR_RED, kickstring); format(kickstring, sizeof(kickstring), "Motiv: %s",(result)); SendClientMessage(giveplayerid, COLOR_RED, kickstring); format(kickstring, sizeof(kickstring), "Data: %d-%d-%d",day,month,year); SendClientMessage(giveplayerid, COLOR_RED, kickstring); SendClientMessage(giveplayerid, COLOR_RED, "Va rugam, Nu incalcati regulile serverului!"); SendClientMessage(giveplayerid, COLOR_GREEN, "------------------------------------------"); Kick(giveplayerid); return 1; } } } else { format(string, sizeof(string), " %d Nu este un player activ.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } }
-
Ia vezi daca merge asa: public SyncTime() { new string[64]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; if ((tmphour > ghour) || (tmphour == 0 && ghour == 23)) { format(string, sizeof(string), "{FFA500}*GameSpeed:{ffffff} acum este ora %d:00 ",tmphour); BroadCast(COLOR_WHITE,string); ghour = tmphour; PayDay(); if (realtime) { SetWorldTime(tmphour); } } } Si: public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pLevel] > 0) { if(MoneyMessage[i]==1) { GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 6); SetPlayerPos(i, 264.6288,77.5742,1001.0391); PlayerInfo[i][pJailed] = 1; ResetPlayerWeapons(i); WantedPoints[i] = 0; format(string, sizeof(string), "Ai fost pus in inchisoare pentru 4 minute Motiv: Boschetar"); SendClientMessage(i, COLOR_LIGHTBLUE, string); PlayerInfo[i][pJailTime] = 240; } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[i][pAccount]; new key = PlayerInfo[i][pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[i][pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "Ai fost dat afara din casa."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } if(PlayerInfo[i][pPayDay] >= 5) { Tax += TaxValue;//Should work for every player online PlayerInfo[i][pAccount] -= TaxValue; if(PlayerInfo[i][pDonateRank] > 0) { new bonus = PlayerInfo[i][pPayCheck] / 8; PlayerInfo[i][pPayCheck] += bonus; } new checks = PlayerInfo[i][pPayCheck]; new ebill = (SBizzInfo[4][sbEntranceCost]); ConsumingMoney[i] = 1; GivePlayerMoney(i, checks); if(PlayerInfo[i][pAccount] > 0) { PlayerInfo[i][pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate); PlayerInfo[i][pExp]++; PlayerPlayMusic(i); PlayerInfo[i][pAccount] = account+interest; SendClientMessage(i, COLOR_WHITE, "{0077ff}|_____________ {509814}Salariul{0077ff} _____________|"); format(string, sizeof(string), " {509814}Ai primit cec in valoare de: {ffe600}$%d {509814}Impozite: {ffe600}$%d", checks, TaxValue); SendClientMessage(i, COLOR_GRAD1, string); if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255) { format(string, sizeof(string), " {509814}Plata electricitate: {ffe600}$%d", ebill); SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " {509814}Ai in cont: {ffe600}$%d", account); SendClientMessage(i, COLOR_GRAD1, string); format(string, sizeof(string), " {509814}Procente: {ffe600}0.%d",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); format(string, sizeof(string), " {509814}Procent primit {ffe600}$%d", interest); SendClientMessage(i, COLOR_GRAD3, string); format(string, sizeof(string), " {509814}Ajutor pentru copii din Africa: {ffe600}-$100"); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GRAD4, "{0077ff}|--------------------------------------|"); format(string, sizeof(string), " {509814}Suma noua:{ffe600} $%d", PlayerInfo[i][pAccount]); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), " {509814}Plata chirie: {ffe600}$%d", rent); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[i][pPayDay] = 0; PlayerInfo[i][pPayCheck] = 0; PlayerInfo[i][pConnectTime]++; if(PlayerInfo[i][pVipRank] > 0) { PlayerInfo[i][pPayDayHad] += 1; if(PlayerInfo[i][pPayDayHad] >= 5) { PlayerInfo[i][pExp]++; PlayerInfo[i][pPayDayHad] = 0; } } } else { Tax += TaxValue;//Should work for every player online PlayerInfo[i][pAccount] -= TaxValue; if(PlayerInfo[i][pDonateRank] > 0) { new bonus = PlayerInfo[i][pPayCheck] / 8; PlayerInfo[i][pPayCheck] += bonus; } new checks = PlayerInfo[i][pPayCheck]; new ebill = (SBizzInfo[4][sbEntranceCost]); ConsumingMoney[i] = 1; GivePlayerMoney(i, checks); if(PlayerInfo[i][pAccount] > 0) { PlayerInfo[i][pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate); PlayerInfo[i][pExp]++; PlayerPlayMusic(i); PlayerInfo[i][pAccount] = account+interest; SendClientMessage(i, COLOR_WHITE, "{0077ff}|_______________ {509814}Salariul{0077ff}______________|"); format(string, sizeof(string), " {509814}Ai primit cec in valoare de: {ffe600}$%d {509814}Impozite:{ffe600} -$%d", checks, TaxValue); SendClientMessage(i, COLOR_GRAD1, string); if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255) { format(string, sizeof(string), " {509814}Plata electricitate: {ffe600}-$%d", ebill); SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " {509814}Ai in cont:{ffe600} $%d", account); SendClientMessage(i, COLOR_GRAD1, string); format(string, sizeof(string), " {509814}Procente: {ffe600}0.%d",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); format(string, sizeof(string), " {509814}Procent primit{ffe600} $%d", interest); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GRAD4, "{0077ff}|--------------------------------------|"); format(string, sizeof(string), " {509814}Suma noua: {ffe600}$%d", PlayerInfo[i][pAccount]); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), " {509814}Plata chirie: {ffe600}-$%d", rent); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[i][pPayDay] = 0; PlayerInfo[i][pPayCheck] = 0; PlayerInfo[i][pConnectTime]++; if(PlayerInfo[i][pVipRank] > 0) { PlayerInfo[i][pPayDayHad] += 1; if(PlayerInfo[i][pPayDayHad] >= 5) { PlayerInfo[i][pExp]++; PlayerInfo[i][pPayDayHad] = 0; } } } } } } Checkprop(); return 1; } Din a doua scoate ce vrei tu ca eu am pus mai mult sa se dea la pay day.
-
1.Ieti un sistem de logare de pe samp.ro 2.Ieti pawno 0.3d.
-
Incearca comanda asta sa sa schimbi numele la factiuni cum ai tu. if(strcmp(cmd, "/invite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "•Foloseste: /invite [Player id]"); return 1; } new para1; new ftext[256]; para1 = strval(tmp); if (PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 128) { if(PlayerInfo[para1][pJob] > 0) { SendClientMessage(playerid, COLOR_GREY, " Acest player are un job,sa foloseasca /quitjob !"); return 1; } if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "LSPD"; ChosenSkin[para1] = 288; SetPlayerSkin(para1, 288); } else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); } else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Army"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); } else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); } else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); } else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); } else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Primaria"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader]; PlayerInfo[para1][pRank] = 1; printf("GameSpeed: %s Ïðèíÿë %s â %s.", sendername, giveplayer, ftext); format(string, sizeof(string), " Ai fost primit in %s, de liderul %s", ftext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " Ai primit pe %s in %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SetPlayerInterior(para1,14); SetPlayerPos(para1,204.3487,-166.3923,1000.5234); ShowMenuForPlayer(ClothesShop, para1); SelectChar[para1] = 255; SelectCharID[para1] = PlayerInfo[para1][pMember]; SelectCharPlace[para1] = 1; PlayerInfo[para1][pModel] = ChosenSkin[para1]; PlayerInfo[para1][pChar] = ChosenSkin[para1]; } else { SendClientMessage(playerid, COLOR_GREY, " Acest player are wanted/este deja membru in alta parte."); return 1; } } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu poti folosi aceasta comanda (leaders only)!"); } } return 1; }
-
9/10 folositor tutorial pentru incepatorii
-
Incearca asa: if(strcmp(cmd, "/ExitVLA", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerToPoint(3.0, playerid,-974.4528,1061.2281,1345.6753))) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 12) { SetPlayerInterior(playerid,2); SetPlayerPos(playerid,731.5355,-1276.1060,17.6484); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 250; } }
