prigat10
-
Posts
18 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by prigat10
-
-
pune la inceputul gamemode-ului " forward IsOnSafeArea(playerid);"
-
Salut,as dori sa creez un meniu asemanator cu acesta cum il pot crea?
As dori putin ajutor..sau un tutorial.
Multumesc.
-
Salut,am si eu o problema cum sa fac ca atunci cineva scrie o culoare {cod} sa nu ii dea voie..pentru ca atunci cand scrie orice culoare in chat pica serverul cum pot sa fac sa apara nume:liber.
Am incercat sa pun niste protectii cu
[pawn]if(strfind(text, "{", true) != -1)
{
SendClientMessage(playerid,COLOR_LIGHTRED,"Nu poti folosi { sau }!");
return 0;
}[/pawn]
merge doar daca scrie orice altceva cu { dar la culoare tot pica server-ul.
Multumesc anticipat.
-
da o folosesc,adica am o comanda /saveweapons si e pusa functia SaveWeaponsToFile(playerid).
Sau daca ai putea sa imi zici cum sa il modific sa fie alt sistem de salvare?
-
Ma ajuta cineva?la inceput a mers iar dupa 2 zile nu a mai functionat!
-
am un fs care ar trebui sa salveze armele care le are un player....dar nu se salveaza ma puteti ajuta?
-
Tot nu reusesc sa il instalez. Cand dau comanda /veh sau orice masina de pe strada sunt de cumpara cu $0. Cum sa nu il bagam in server.cfg atunci nu il putem folosi ?? Ma ajutati va rog ?
uite ce zice aici... daca citesti tot o sa vezi ca il poti folosi...dar nu trebuie adaugat in server.cfg!
ATENTIE!!!
Ca sa va mearga acest filterscript trebuie sa faceti exact.
Adaugati cu atentie in gamemodul vostru:
[pawn]
public OnGameModeExit()
{
SendRconCommand("unloadfs carownership");
return 1;
}//in cazul in care aveti OnGameModeExit deja, puneti doar SendRconCommand("unloadfs carownership"); la sfarsit/ sa ramana return 1; ultimul.
//asta o adaugati la sfarsitul OnGameModeInit PS: si aici trebuie return 1; sa ramana ultimul.
SendRconCommand("loadfs carownership");
[/pawn]
-
le am sub forma de fs inlocuiesc doar loadweapons si saveweapons?
-
incearca sa te loghezi cu rcon si foloseste /jetpack! vezi daca merge
-
Salut!Am facut asta dar n use salveaza...creaza fisierul User.txt dar nu salveaza si armele...
[pawn]
#define PATH "Weapons"
SaveWeaponsToFile(playerid)
{
new i, path[50], string[128], weaponid, ammo;
path = GetPlayerFormattedName(playerid);
if (!dini_Exists(path)) dini_Create(path);
for (i=0; i<13; i++)
{
GetPlayerWeaponData(playerid,i,weaponid,ammo);
format(string,sizeof(string),"Weapon - %d",i);
dini_IntSet(path,string,weaponid);
format(string,sizeof(string),"AmmoID - %d",i);
dini_IntSet(path,string,ammo == 65535 ? 0 : ammo);
}
}[/pawn]
Multumesc!
-
am rezolvat problema de mai sus insa acum am alta problema...daca dau relog nu mi se salveaza CarKeys...si cand ma urc pe nrg zice ca e inregistrat pe numele dar dupa scrie ca nu am cheie... ce trrebuie sa fac sa mearga?
Multumesc anticipat!
-
salut am si eu o problema!Am creat masinile merge perfect insa dupa ce dau restart,masinile cumparate deja devin libere,adica pot fii iar cumparate..cum pot sa rezolv asta? Multumesc anticipat!
-
Salut,am incercat sa fac aceasta comanda de war:
if(strcmp(cmd, "/war", true) == 0) { new name[MAX_PLAYER_NAME]; new killerid; new sparaw = 0; new legacy = 0; GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1339) { format(string, sizeof(string), "Admin %s Start a Gang War!", sendername); SendClientMessageToAll(0xFF7171FF, string); format(string, sizeof(string), "- Ballas, Los Santos Vagos, The Mafia vs Varrios Los Aztecas, Grove Street, The Triads -"); SendClientMessageToAll(COLOR_GREEN, string); } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu esti Admin pentru a incepe un War !"); } } if(PlayerInfo[killerid][pMember] == 5 || PlayerInfo[killerid][pLeader] == 5) { if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [The Mafia] has killed %s [The Triads] and recivied 2500$.",killer,name); SendmfiMessage(COLOR_1GREEN, string); format(string,128,"* %s [The Triads] was pwned by %s [The Mafia] and lost 2500$.",name,killer); SendthrMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 6 || PlayerInfo[killerid][pLeader] == 6) { if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [The Triads] has killed %s [The Mafia] and recivied 2500$.",killer,name); SendthrMessage(COLOR_1GREEN, string); format(string,128,"* %s [The Mafia] was pwned by %s [The Triads] and lost 2500$.",name,killer); SendmfiMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 12 || PlayerInfo[killerid][pLeader] == 12) { if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Grove Street] has killed %s [Ballas] and recivied 2500$.",killer,name); SendBZMessage(COLOR_1GREEN, string); format(string,128,"* %s [Ballas] was pwned by %s [Grove Street] and lost 2500$.",name,killer); SendCZMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 13 || PlayerInfo[killerid][pLeader] == 13) { if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Ballas] has killed %s [Grove Street] and recivied 2500$.",killer,name); SendCZMessage(COLOR_1GREEN, string); format(string,128,"* %s [Grove Street] was pwned by %s [Ballas] and lost 2500$.",name,killer); SendBZMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 14 || PlayerInfo[killerid][pLeader] == 14) { if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Los Santos Vagos] has killed %s [Variors Los Aztecs] and recivied 2500$.",killer,name); SendNTMessage(COLOR_1GREEN, string); format(string,128,"* %s [Variors Los Aztecas] was pwned by %s [Los Santos Vagos] and lost 2500$.",name,killer); SendSTMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 15 || PlayerInfo[killerid][pLeader] == 15) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Variors Los Aztecas] has killed %s [Los Santos Vagos] and recivied 2500$.",killer,name); SendSTMessage(COLOR_1GREEN, string); format(string,128,"* %s [Los Santos Vagos] was pwned by %s [Variors Los Aztecas] and lost 2500$.",name,killer); SendNTMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 5 || PlayerInfo[killerid][pLeader] == 5) { if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [The Mafia] has killed %s [Grove Street] and recivied 2500$.",killer,name); SendmfiMessage(COLOR_1GREEN, string); format(string,128,"* %s [Grove Street] was pwned by %s [The Mafia] and lost 2500$.",name,killer); SendBZMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 5 || PlayerInfo[killerid][pLeader] == 5) { if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [The Mafia] has killed %s [Variors Los Aztecas] and recivied 2500$.",killer,name); SendmfiMessage(COLOR_1GREEN, string); format(string,128,"* %s [Variors Los Aztecas] was pwned by %s [The Mafia] and lost 2500$.",name,killer); SendSTMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 6 || PlayerInfo[killerid][pLeader] == 6) { if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [The Triads] has killed %s [Ballas] and recivied 2500$.",killer,name); SendthrMessage(COLOR_1GREEN, string); format(string,128,"* %s [Ballas] was pwned by %s [The Triads] and lost 2500$.",name,killer); SendCZMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 6 || PlayerInfo[killerid][pLeader] == 6) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [The Triads] has killed %s [Los Santos Vagos] and recivied 2500$.",killer,name); SendthrMessage(COLOR_1GREEN, string); format(string,128,"* %s [Los Santos Vagos] was pwned by %s [The Triads] and lost 2500$.",name,killer); SendNTMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 12 || PlayerInfo[killerid][pLeader] == 12) { if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Grove Street] has killed %s [The Mafia] and recivied 2500$.",killer,name); SendBZMessage(COLOR_1GREEN, string); format(string,128,"* %s [The Mafia] was pwned by %s [Grove Street] and lost 2500$.",name,killer); SendmfiMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 12 || PlayerInfo[killerid][pLeader] == 12) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Grove Street] has killed %s [Los Santos Vagos] and recivied 2500$.",killer,name); SendBZMessage(COLOR_1GREEN, string); format(string,128,"* %s [Los Santos Vagos] was pwned by %s [Grove Street] and lost 2500$.",name,killer); SendNTMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 13 || PlayerInfo[killerid][pLeader] == 13) { if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Ballas] has killed %s [The Triads] and recivied 2500$.",killer,name); SendCZMessage(COLOR_1GREEN, string); format(string,128,"* %s [The Triads] was pwned by %s [Ballas] and lost 2500$.",name,killer); SendthrMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 13 || PlayerInfo[killerid][pLeader] == 13) { if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Ballas] has killed %s [Variors Los Aztecas] and recivied 2500$.",killer,name); SendCZMessage(COLOR_1GREEN, string); format(string,128,"* %s [Variors Los Aztecas] was pwned by %s [Ballas] and lost 2500$.",name,killer); SendSTMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 14 || PlayerInfo[killerid][pLeader] == 14) { if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Los Santos Vagos] has killed %s [The Triads] and recivied 2500$.",killer,name); SendNTMessage(COLOR_1GREEN, string); format(string,128,"* %s [The Triads] was pwned by %s [Los Santos Vagos] and lost 2500$.",name,killer); SendthrMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 14 || PlayerInfo[killerid][pLeader] == 14) { if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Los Santos Vagos] has killed %s [Grove Street] and recivied 2500$.",killer,name); SendNTMessage(COLOR_1GREEN, string); format(string,128,"* %s [Grove Street] was pwned by %s [Los Santos Vagos] and lost 2500$.",name,killer); SendBZMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); sparaw = sparaw ++; return 1; } } if(PlayerInfo[killerid][pMember] == 15 || PlayerInfo[killerid][pLeader] == 15) { if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Variors Los Aztecas] has killed %s [The Mafia] and recivied 2500$.",killer,name); SendSTMessage(COLOR_1GREEN, string); format(string,128,"* %s [The Mafia] was pwned by %s [Variors Los Aztecas] and lost 2500$.",name,killer); SendmfiMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } if(PlayerInfo[killerid][pMember] == 15 || PlayerInfo[killerid][pLeader] == 15) { if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s [Variors Los Aztecas] has killed %s [Ballas] and recivied 2500$.",killer,name); SendSTMessage(COLOR_1GREEN, string); format(string,128,"* %s [Ballas] was pwned by %s [Variors Los Aztecas] and lost 2500$.",name,killer); SendCZMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 2500); legacy = legacy ++; return 1; } } }
dar am o problema cum pot sa fac sa se opreasa dupa un anumit timp si sa afiseze scorul...m-am chinuit sa o fac dar nu am reusit!
-
new Float:HouseCarSpawns[35][4] = { {-2637.2544,165.0454,4.2919,179.9976},//House 0 {2064.4,-1694.4,13.1,271.1561},//House 1 {-2712.7625,870.3005,70.5348,89.1608},//House 2 {1109.8,-968.0,42.7,0.0},//house 3 {2497.6274,-2025.6306,13.2521,355.4281}, // House 4 {2645.0,-1990.8,13.1,180.0},//House - 5 {-2724.8965,914.8384,67.4253,110.1072},//house 6 {1910.5149,-1120.5304,25.4493,177.8350},//house 7 {828.8,-887.0,68.5,230.7095},//House 8 {2149.6,-1610.9,14.0,90.7904},//House 9 {760.1,-1687.8,4.3,180.6},//House 10 {645.5,-1616.1,14.9,0.0},//House 11 {-2635.2371,931.1931,71.5643,215.3709},//House 12 {-2665.9224,989.9724,64.6955,1.7814},//House 13 {810.3768,-1464.2809,13.0796,86.8112},//House 14 {2445.8,-1326.8,23.6,18.4},//House 15 {2845.9,-1286.8,18.9,90.0},//house 16 {2159.8,-1803.9,13.3,271.4}, //House 17 {-2693.7847,132.3186,4.1676,89.5330},//House 18 {-2723.0105,977.7357,54.2926,359.9068},//House 19 {1514.0,-694.6,94.5,90.0},//House 20 {1246.7,-1107.6,25.5,266.4},//House 21 {831.7,-857.5,69.9,180.0},//House 22 {1007.9,-659.4,121.1,130.6194},//House 23 {1110.0,-726.4,100.1,90.0},//House 24 {259.7,-1221.0,74.7,202.0011},//House 25 {1463.7,-901.7,55.8,359.0},//house 26 {1440.1,-890.6,51.2,0.0},//house 27 {-2528.8298,2250.2998,4.8112,334.9590},//house 28 {-2554.7874,2270.5356,4.9064,333.9774}, //House 29 {-2371.1323,2438.4104,9.0698,159.2582},//House 30 {-2237.9492,893.7390,66.4872,89.7571},//House 31 {-2529.4817,-142.6608,19.7107,4.2929}, //House 32 {-2616.1897,-108.4479,4.1693,269.8246},//House 33 {1248.9210,-805.4557,83.8453,179.5623}//House 34//asta e ultima masina pe care am bagat-o de la noua casa
-
salut am si eu o problema am adaugat casa merge foate bine am adugat si masina dar nu imi apare..ce trebuie sa fac?
-
Ma poate ajuta si pe mine cineva cu o comanda?
Vreau si eu sa fac o comanda care atunci cand dai /muta sa iti mute masina persolana direct fara sa mai modifici coord din gm...am incercat sa fac dar nu am reusit!Daca ma puteti ajutor...va raman dator,merci!
-
Am facut si eu o casa dupa model si am reusit,dar am o problema cand adaug masina de la casa...mi se schimba toate oldcar-urile de la toate masinile...cum pot sa fac sa rezolv asta?
Problema /sellbiz
in Arhivă probleme
Posted
inloc de 1 pune cat vrei sa coste bizz-ul