ToX1c
-
Posts
245 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by ToX1c
-
-
format(string, sizeof(string), "%s a fost scos din joc deoarece a stat prea mult timp AFK.", playerName[i]);
Viorel eu vreau sa fac atunci cand stai 3 2 minute afk in joc sa iti apara culoarea 0x737373FF gry si cand revii in joc sa te misti putin si sa iti revina culoarea cum era inainte specific factiuni sau in ce esti u civil etc.
-
Ma ajuta cineva va rog?
-
Salut, cine ma poate ajuta si pe mn sa fac un sistem de Auto-AFK, fara comenzile /afk /back? Daca un player nu isi misca userul 3 min sa ii apara culoarea specifica, si dupa ca reintra in joc si se misca putin sa ii apara culoarea pe care o avea inainte specifica fiecarei factiuni.
-
Ma poti ajuta ca nuj cum sa fac.?te rog.
-
Ma ajuta cineva?
-
1.Am o problema cu , comanda /ticket cum fac sa nu mai dea pe minus cand un cop ii da la un civil sau la oricine /ticket si acel playeri nu are bani respectivi sa nu mearga sa dea /accept ticket.
if(strcmp(cmd, "/ticket", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] != 2) { SendClientMessage(playerid, COLOR_GREY, " You are not a Cop!"); return 1; } if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_GREY, " You are not on Duty!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ticket [playerid/PartOfName] [price] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ticket [playerid/PartOfName] [price] [reason]"); return 1; } moneys = strval(tmp); if(moneys < 1 || moneys > 5) { SendClientMessage(playerid, COLOR_GREY, " Ticket Money can't be below 1 or higher then 10 !"); return 1; } if(IsPlayerConnected(giveplayerid)) { if(PlayerInfo[playerid][pCash] < 5) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"You can not affrod that."); return 1; } if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { 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, "USAGE: /ticket [playerid/PartOfName] [price] [reason]"); return 1; } format(string, sizeof(string), "* You gave %s a Ticket costing $%d, reason: %s", giveplayer, moneys, (result)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Officer %s has given you a Ticket costing $%d, reason: %s", sendername, moneys, (result)); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Type /accept ticket, to accept it."); TicketOffer[giveplayerid] = playerid; TicketMoney[giveplayerid] = moneys; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; }
2.Tot la fel si la comanda /heal pentru medici ca la 1.sa nu poata da pe minus.
3.care poate sa ma ajute si pe mine la comanda /givemats sa pot da /accept mats ca nu reusesc sa o fac.
-
Ne ajuta cineva?
-
Cum fac si eu un sistem de afk cand cineva sta in bara 5 minute sa il puna automat in alta culoare de afk si cand revine sa revina la culoarea care a avuto.
-
Ma ajuta cineva?
-
Pasta il am si eu.
-
Salut care poate sa ma ajute si pe mine sa rezolv bugul la mute , cand ii dau cuiva mute si iese dupa sv cand intra nu mai are mute.
-
salut am vazut pe mai multe sv la masinile de factiuni cand dai enter nu te lasa sa te urci te da in spate cand dai enter ma poate ajuta si pe mine cineva ?
-
Salut cum fac si eu ca , civili sa nu poata lua skin de liderii.Multumesc
-
Salut care poate sa ma ajute la aceste boxuri sa fac sa nu mai apara forumul si user-ul sub mapa sa apara doar negru.
http://img545.imageshack.us/img545/6236/41117824.png
///////........ TD UP, DOWN ............./////// TDDOWN = TextDrawCreate(1.000000,342.000000,"__"); TDUP = TextDrawCreate(1.000000,1.000000,"__"); TextDrawUseBox(TDDOWN,1); TextDrawBoxColor(TDDOWN,0x000000ff); TextDrawTextSize(TDDOWN,645.000000,0.000000); TextDrawUseBox(TDUP,1); TextDrawBoxColor(TDUP,0x000000ff); TextDrawTextSize(TDUP,719.000000,0.000000); TextDrawAlignment(TDDOWN,0); TextDrawAlignment(TDUP,0); TextDrawBackgroundColor(TDDOWN,0x000000ff); TextDrawBackgroundColor(TDUP,0x000000ff); TextDrawFont(TDDOWN,3); TextDrawLetterSize(TDDOWN,1.000000,12.000013); TextDrawFont(TDUP,3); TextDrawLetterSize(TDUP,1.000000,12.900003); TextDrawColor(TDDOWN,0xffffffff); TextDrawColor(TDUP,0xffffffff); TextDrawSetOutline(TDDOWN,1); TextDrawSetOutline(TDUP,1); TextDrawSetProportional(TDDOWN,1); TextDrawSetProportional(TDUP,1); TextDrawSetShadow(TDDOWN,1); TextDrawSetShadow(TDUP,1); ///////........ TD UP, DOWN .............///////
-
Foarte frumos , Bravo.
-
Solved ms Leon.
-
Pai si cu asta ce fac
Textdraw0 = TextDrawCreate(495.0, 435.0,"www.gamees-x.com"); TextDrawAlignment(Textdraw0,1); TextDrawBackgroundColor(Textdraw0,0x000000ff); TextDrawFont(Textdraw0,2); TextDrawLetterSize(Textdraw0,0.299999,1.000000); TextDrawColor(Textdraw0,0xE6D617FF); TextDrawSetOutline(Textdraw0,1); TextDrawSetProportional(Textdraw0,1); TextDrawSetShadow(Textdraw0,1); Textdraw1 = TextDrawCreate(495.0, 435.0,"GameSx Rpg"); TextDrawAlignment(Textdraw1,1); TextDrawBackgroundColor(Textdraw1,0x000000ff); TextDrawFont(Textdraw1,2); TextDrawLetterSize(Textdraw1,0.299999,1.000000); TextDrawColor(Textdraw1,0xE6D617FF); TextDrawSetOutline(Textdraw1,1); TextDrawSetProportional(Textdraw1,1); TextDrawSetShadow(Textdraw1,1);
-
Am
public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1);
-
Nu am , uite ce am la onplayerspawn
public OnPlayerSpawn(playerid) { if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { gTeam[playerid] = 2; PlayerInfo[playerid][pTeam] = 2; } if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { GivePlayerWeapon(playerid, 24, 50); GivePlayerWeapon(playerid, 29, 100); GivePlayerWeapon(playerid, 41, 10000); } if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { GivePlayerWeapon(playerid, 5, 1); } GangZoneShowForPlayer(playerid, surenos, 0x80FFFF96); GangZoneShowForPlayer(playerid, bloods, 0x008000C8); GangZoneShowForPlayer(playerid, crips, 0x800080CA); GangZoneShowForPlayer(playerid, nortenos, 0xFFFF80D1); InitLockDoors(playerid); STDPlayer[playerid] = 0; gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team if (gTeam[playerid] == 4) //medic / criminal reset team { gTeam[playerid] = 3; } if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **"); KickPlayer[playerid] = 1; } if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1) { MedicBill[playerid] = 0; new rand = random(sizeof(CIV)); SendClientMessage(playerid, COLOR_LIGHTRED, "You are not an Approved Leader, you are now a Civilian !"); PlayerInfo[playerid][pTeam] = 3; gTeam[playerid] = 3; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pModel] = CIV[rand]; SpawnPlayer(playerid); } if(gTeam[playerid] == 5) { if(PlayerInfo[playerid][pMember] < 1) { MedicBill[playerid] = 0; new rand = random(sizeof(CIV)); SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a Family Member, you are now a Civilian !"); PlayerInfo[playerid][pTeam] = 3; gTeam[playerid] = 3; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pModel] = CIV[rand]; SpawnPlayer(playerid); } } if(gTeam[playerid] == 10) { if(PlayerInfo[playerid][pMember] != 8) { MedicBill[playerid] = 0; new rand = random(sizeof(CIV)); SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a Member of this Agency, you are now a Civilian !"); PlayerInfo[playerid][pTeam] = 3; gTeam[playerid] = 3; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pModel] = CIV[rand]; SpawnPlayer(playerid); } } if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3 && PlayerInfo[playerid][pMember] < 14) { MedicBill[playerid] = 0; new rand = random(sizeof(CIV)); SendClientMessage(playerid, COLOR_LIGHTRED, "You haven't applied for being an Officer / FBI / LS Council, you are now a Civilian !"); PlayerInfo[playerid][pTeam] = 3; gTeam[playerid] = 3; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pModel] = CIV[rand]; SpawnPlayer(playerid); } if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); } else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } SetPlayerSpawn(playerid); SetPlayerToTeamColor(playerid); PlayerFixRadio(playerid); for(new i = 0; i < sizeof(Turfs); i++) { GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]); } return 1; }
-
Mane tot asa imi apare http://img31.imageshack.us/img31/2533/samp009wp.png
Amandoua in acelasi timp si dupaia merge perfect da prima data cand intru pe sv imi apare asa si dupa cateva secunde merge bine..
Ma ajuta si pe mine cineva?
-
stuntman-=!!" post="39874" timestamp="1283687764"]
Cu timer...
- sus in script:
new TextdrawChanger;
- sub OnGameModeInitSetTimer("TextdrawTimer",5000,1);
- undeva in script:forward TextdrawTimer(); public TextdrawTimer() { if(TextdrawChanger==1) { TextDrawHideForAll(Textdraw0); TextDrawShowForAll(Textdraw1); TextdrawChanger=0; } else if(TextdrawChanger==0) { TextDrawShowForAll(Textdraw0); TextDrawHideForAll(Textdraw1); TextdrawChanger=1; } }
EDIT: Al 800-lea post al meu.
Mane tot asa imi apare http://img31.imageshack.us/img31/2533/samp009wp.png
Amandoua in acelasi timp si dupaia merge perfect da prima data cand intru pe sv imi apare asa si dupa cateva secunde merge bine..
-
Pui asta la /stats
format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Spawn:[%s] SpawnHealth:[%.1f] Cash:[%s] Bank:[%s] Phone:[%d]", level,atext,age,otext,shealth+150, DecimalPoint(targetid), DecimalPointBank(targetid), account, pnumber);
Substock DecimalPoint(playerid) { new str[30]; new cash=GetPlayerMoney(playerid); if(cash >= 0) { format(str, sizeof(str), "$%d", cash); if(1000 <= cash < 10000) strins(str, ".", 2, sizeof(str)); else if(10000 <= cash < 100000) strins(str, ".", 3, sizeof(str)); else if(100000 <= cash < 1000000) strins(str, ".", 4, sizeof(str)); else if(1000000 <= cash < 10000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); } else if(10000000 <= cash < 100000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(100000000 <= cash < 1000000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(cash >= 1000000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); strins(str, ".", 10, sizeof(str)); } } else { format(str, sizeof(str), "-$%d", cash-(cash*2)); if(-1000 >= cash > -10000) strins(str, ".", 3, sizeof(str)); else if(-10000 >= cash > -100000) strins(str, ".", 4, sizeof(str)); else if(-100000 >= cash > -1000000) strins(str, ".", 5, sizeof(str)); else if(-1000000 >= cash > -10000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(-10000000 >= cash > -100000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(-100000000 >= cash > -1000000000) { strins(str, ".", 5, sizeof(str)); strins(str, ".", 9, sizeof(str)); } else if(cash <= -1000000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); strins(str, ".", 11, sizeof(str));} } return str; }
Puistock DecimalPointBank(targetid) { new str[30]; new account = PlayerInfo[targetid][pAccount]; if(account >= 0) { format(str, sizeof(str), "$%d", account); if(1000 <= account < 10000) strins(str, ".", 2, sizeof(str)); else if(10000 <= account < 100000) strins(str, ".", 3, sizeof(str)); else if(100000 <= account < 1000000) strins(str, ".", 4, sizeof(str)); else if(1000000 <= account < 10000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); } else if(10000000 <= account < 100000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(100000000 <= account < 1000000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(account >= 1000000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); strins(str, ".", 10, sizeof(str)); } } else { format(str, sizeof(str), "-$%d", account-(account*2)); if(-1000 >= account > -10000) strins(str, ".", 3, sizeof(str)); else if(-10000 >= account > -100000) strins(str, ".", 4, sizeof(str)); else if(-100000 >= account > -1000000) strins(str, ".", 5, sizeof(str)); else if(-1000000 >= account > -10000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(-10000000 >= account > -100000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(-100000000 >= account > -1000000000) { strins(str, ".", 5, sizeof(str)); strins(str, ".", 9, sizeof(str)); } else if(account <= -1000000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); strins(str, ".", 11, sizeof(str));} } return str; }
-
Ma ajuta si pe mine cineva?
-
Farse am facut cum ai zis da uite cand intru pe sv cum apara si dupa ce ma loghez imi merge bine..
http://img31.imageshack.us/img31/2533/samp009wp.png
Textdraw0 = TextDrawCreate(495.0, 435.0,"www.gamees-x.Com"); TextDrawAlignment(Textdraw0,1); TextDrawBackgroundColor(Textdraw0,0x000000ff); TextDrawFont(Textdraw0,3); TextDrawLetterSize(Textdraw0,0.299999,1.000000); TextDrawColor(Textdraw0,0xE6D617FF); TextDrawSetOutline(Textdraw0,1); TextDrawSetProportional(Textdraw0,1); TextDrawSetShadow(Textdraw0,1); Textdraw1 = TextDrawCreate(495.0, 436.0,"GameSx RPG"); TextDrawAlignment(Textdraw1,1); TextDrawBackgroundColor(Textdraw1,0x000000ff); TextDrawFont(Textdraw1,3); TextDrawLetterSize(Textdraw1,0.299999,1.000000); TextDrawColor(Textdraw0,0xE6D617FF); TextDrawSetOutline(Textdraw1,1); TextDrawSetProportional(Textdraw1,1); TextDrawSetShadow(Textdraw1,1);
Auto-Afk
in Arhivă probleme
Posted
Victor daca poti sa ma ajuti aici.!!!
LiniaVictor si am si eu o intrebare cu referire la ce mi-ai dat !!dupa 2 minute cat ai pus u acolo se pune intr-o anumita culoare adica cum ar fi gry si cand revii in joc se face culoarea cum era inainte?