SaLiErY
-
Posts
126 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by SaLiErY
-
-
eu am facut tot ce ai spus icebox in acel scurt tutorial si vreu sa spun ca nu merge pur si simplu nu aparea tutorialu am facut tot ce scria
-
ms mult merge nu mai ia ban dar mai e o acuma e o alba problema cand vreu sa ma teleportez la ei ma baga sub pamant la cordonatele 0 0 0 am baga aia cu
if(IsPlayerNPC(playerid))
{
return 1;
}
la onplayerconnect la onplayerspawn si tot nu merge
-
eu in junkbuster.cfg am dor
3DSpeed=0
MaxSpeed=220 sa fun 0 sau ce?
-
am sters sa-mp.ban am am pornit srv dar tot iau ban de la junkbuster am inteles de la alti scipteri ca ar trebui sa modific ceva din junkbuster dar nici eu nu stiu ce
-
Salut Am facut si eu npc merg intra pe srv tot dar in consola imi arata ca is banati si char sunt banati motiv speed hack dar eu iam facut pe jos fara masina imi puteti spune dc iau ban npc (folosesc junkbuster anti chear)
-
ms mult inca odata char nam vazuto
-
Ms man merge (Spunemi ce ai facut ca numi dau seama) +1
-
Dupa Gm Ravens Am Incercat Sa Fac si eu un Train Sistem la Arme am Reusit Merge Bine Pana La Un Anume Punc
si adica sciptu-l urmator
if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625)) { if(PlayerInfo[playerid][pAmmuTrainTime] == 0) { new weapon[] = "Desert Deagle\nSMG MP5\nAK-47\nM4" ShowPlayerDialog(playerid,0,2,"What U Need Train",weapon,"Train","Cancel"); return 1; } else { format(string, sizeof(string), "ERROR: You must wait %d Seconds before you can get a training",PlayerInfo[playerid][pAmmuTrainTime]); SendClientMessage(playerid, COLOR_GREY, string); return 1; } }
la acest scipt imi da erore la linia 4667 eroarea find (4667) : error 001: expected token: ";", but found "-identifier-" iar linia 4667 eShowPlayerDialog(playerid,0,2,"What U Need Train",weapon,"Train","Cancel");
va rog mult ajutatima
-
cea mai usoara metoda de reparare ia modu eroleplay ne editat original-u facut de mriluzion si refal de acolo
-
char nu ma poate ajuta nimeni
-
eu te pot ajuta cu kill cop
if(PlayerInfo[killerid][pMember] == 6 || PlayerInfo[killerid][pLeader] == 6) { 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) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128,"* %s Yakuza has killed %s Cop and recivied 7000$.",killer,name); SendBZMessage(COLOR_1GREEN, string); format(string,128,"* %s Cop was pwned by %s Yakuza.",name,killer); SendCZMessage(COLOR_1BLUE, string); GivePlayerMoney(killerid, 7000); return 1; } }
-
am verificat sciptu numi da eroare/warning nimic din jco ies cu wanted maxim (adica 6) cand intru in joc am wanted 0 am verificat peste tot la /stats /wanted peste tot unde arata wanted am incercat sa dau /surrender /arest si zice ca am wanted 0
-
am facut ce meai dat dar din pacate nu merge ies de pe srv cu wanted si cand intru nam wanted..
-
Cum pot face ca atunci cand un player iese de pe server si are wanted sai ramana wantedu si dupa ce se rendorce pe server
-
prea smeker...
-
modifici din comanda /aod :
if(strcmp(cmd, "/aod", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(AdminDuty[playerid] == 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "[Admin Info] %s [ID:%d] is no longer on duty as an admin.", sendername,playerid); SendClientMessageToAll(COLOR_DBLUE,string); AdminDuty[playerid] = 0; SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,0); SetPlayerToTeamColor(playerid); } else { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "[Admin Info] %s [ID:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid); SendClientMessageToAll(0xFAAFBEFF,string); AdminDuty[playerid] = 1; SetPlayerHealth(playerid,99999); SetPlayerArmour(playerid,99999); SetPlayerColor(playerid,0xFAAFBEFF); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF ); } } } } else { SendClientMessage(playerid,COLOR_GREY,"Your not an admin !"); } return 1; }
prate fara suparare nu e ce cauta el..el ar vrea ceva care sati seteze numele cu Scipteru[AOD] si cand dai dinou aod sa iesi din sati apare numele dor Scipteru
-
[move]SUPER HARTA 5/5 +1 o voi folosi si eu[/move]
-
salut care imi poate modificat si mie comanda de /sellmats ca sa ceara si bani pe de ex /sellmats (id) (cate materiale) (suma) iar la cel care le vand sa trebuiasca sa dea /accest mats si sa ii scata suma de bani pe care se cere la /sellmats
if(strcmp(cmd,"/sellmats",true)==0){
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 9)
{
SendClientMessage(playerid, COLOR_GREY, " You're not the materials dealer ! ");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "HINT: /sellmats [playerid/PartOfName] [ammount]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(ProxDetectorS(5.0, playerid, giveplayerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "HINT: /sellmats [playerid/PartOfName] [ammount]");
return 1;
}
new ammount = strval(tmp);
if(ammount < 1) { SendClientMessage(playerid, COLOR_GREY, " Wrong ammount ! "); return 1; }
if(ammount > PlayerInfo[playerid][pMats]) { SendClientMessage(playerid, COLOR_GREY, " You don't have so many materials to sell !"); return 1; }
PlayerInfo[playerid][pMats] -= ammount;
PlayerInfo[giveplayerid][pMats] += ammount;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* %s gives a package of materials to %s", sendername, giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Player is not near you ! ");
return 1;
}
}
}
}
return 1;
}
comanda este aici sper sa ma puteti ajuta multumesc mult
-
frumos pacar am cam SI!
-
sa zicem asea 3/5 harta e faina locu e super meai dat o idee faina unde pot face si eu spawnsecundary in ls pentru prima harta e reusita gg
-
nimic de spus inafara de gg si 5/5
-
gg nice mapa
-
1. trebe sa pun tu din property cordonatele bune ca sunt stricate
2. unde is pGunLic trebe sa adaugi si
pBuletin,la playerinfo[playerid] trebe sa mai adaugi si
PlayerInfo[playerid][pBuletin] = 0dupa
format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);adaugi
format(var, 32, "Buletin=%d\n",PlayerInfo[playerid][pBuletin]);fwrite(hFile, var);dupa
if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }adaugi
if( strcmp( key , "Buletin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBuletin] = strval( val ); }la atakelicense trebe sa mai adaugi
else if(strcmp(x_nr,"buletin",true) == 0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl buletinlicense [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* I-ai luat lui %s Buletin.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Adminul %s ti-a luat Licenta de Buletin.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pBuletin] = 0;
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmWarning: Admin %s has take License Buletin to %s.", sendername,giveplayer);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Acel player este Offline!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Nu esti autorizat pentru a folosi aceasta comanda!");
return 1;
}
}
return 1;
}
la agivelicense trebe adaugat
else if(strcmp(x_nr,"buletin",true) == 0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agivelicense buletinlicense [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* You've given a Buletin License to %s.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Admin %s has given you a Buletin License.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pBuletin] = 1;
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmWarning: Admin %s has give License Buletin to %s.", sendername,giveplayer);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is Offline!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorised to use this command!");
return 1;
}
}
return 1;
}
dupa trebe sa faci comanda sa cumperi buletinu ( to dau eu ) comanda e facuta sa iei buletinu din Primarie
if(strcmp(cmd, "/buybuletin", true) == 0){
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid,362.4364,173.2401,1008.3828))
{
if(PlayerInfo[playerid][pBuletin] == 0)
{
if(PlayerInfo[playerid][pCash] >= 1000)
{
if(PlayerInfo[playerid]
>= 14)
{
SendClientMessage(playerid, COLOR_WHITE, "Nu ai 14 ani sau mai mult!");
}
SendClientMessage(playerid, COLOR_LIGHTRED, "Acum ai un BULETIN!");
GivePlayerMoney(playerid, -1000);
PlayerInfo[playerid][pBuletin] = 1;
GameTextForPlayer(playerid, "~r~-1000", 5000, 1);
}
else
{
SendClientMessage(playerid, COLOR_GREY," Nu ai $1000 !");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY," Ai deja un BULETIN !");
}
}
}
}
la givelicense trebe inca
else if(strcmp(x_nr,"buletin",true) == 0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givelicense buletinlicense [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* You've given a Buletin License to %s.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Instructor %s has given you a Buletin License.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pBuletin] = 1;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
return 1;
}
}
}
la take trebe adaugat
else if(strcmp(x_nr,"buletin",true) == 0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take buletinlicense [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
format(string, sizeof(string), "* You have taken away %s's Buletin License.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Officer %s has taken away your Buletin License.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pBuletin] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Unknown Take name !");
return 1;
}
}
comanda sa vezi buletinu tu
if(strcmp(cmd,"/buletin",true)==0){
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBuletin] == 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new otext[20];
if(PlayerInfo[playerid][pOrigin] == 1) { otext = "SF"; }
else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "LS"; }
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Male"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Female"; }
SendClientMessage(playerid, COLOR_LIGHTRED, "Your Buletin");
format(string, sizeof(string), "~b~RO~y~MA~r~NIA~n~~w~Name: %s~n~~w~Age: %d~n~~w~Origin: %s~n~~w~Sex: %s.", sendername,PlayerInfo[playerid]
,otext,atext);
comanda sa areti buletinu la careva
if(strcmp(cmd,"/showbuletin",true)==0){
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showbuletin [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(PlayerInfo[playerid][pBuletin] < 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You don't have a buletin to show!");
}
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Show your Buletin to yourself, use /showbuletin!"); return 1; }
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
new otext[20];
if(PlayerInfo[playerid][pOrigin] == 1) { otext = "SF"; }
else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "LS"; }
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Male"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Female"; }
SendClientMessage(giveplayerid, COLOR_LIGHTRED, "A Buletin");
format(string, sizeof(string), "~r~RO~y~MAN~b~IA~n~~w~Name: %s~n~~w~Age: %d~n~~w~Origin: %s~n~~w~Sex: %s.", sendername,PlayerInfo[playerid]
,otext,atext);
la else if (PlayerToPoint are trebui adaugata
else if (PlayerToPoint(3, i,362.4364,173.2401,1008.3828)){
GameTextForPlayer(i, "~w~Type: ~r~~h~/buybuletin ~w~ to buy a ~b~Buletin ~n~~w~Cost: ~g~~h~$1000", 3000, 5);
}
iar daca vrei sa apara I de unde iti ei buletinu
AddStaticPickup(1239, 23, 362.4364,173.2401,1008.3828);//BuletinGameTextForPlayer(giveplayerid, string, 5000, 1);
format(string, sizeof(string), "* %s has shown his Buletin to you.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* You have shown your Buletin to %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
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;
}
GameTextForPlayer(playerid, string, 5000, 1);
}
}
return 1;
}
-
1. imi puneti cumva cum fac sa apasa mai multe stelute adica eu am wantedu pana la 10 si apar numa 6 stelute
2. cum pot face cand urc in masina de cop sa numi apara 2 stelute din prima sa apara cate o steluta pentru fiecare data cand dau enter
Cum bag casi sau cum pot sa fac sa le pot cumpara
in Arhivă probleme
Posted
poftim http://forum.sa-mp.ro/index.php/topic,2705.0.html date vitorea arunca un ochi pe tutoriale sau dai search