angel
-
Posts
179 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Posts posted by angel
-
-
Schimba busroutestoptimer care il ai in gm cu acesta:
public busroutestoptimer(playerid)
{
if(IsPlayerConnected(playerid))
{
new newcar = GetPlayerVehicleID(playerid);
if(newcar == jobpompier || newcar == jobpompier1 || newcar == jobpompier2 || newcar == jobpompier3)
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Acum poti sa te misti!");
}
}
}Adauga la OnPlayerEnterCheckpoint:
new newcar = GetPlayerVehicleID(playerid);
if(newcar == jobpompier || newcar == jobpompier1 || newcar == jobpompier2 || newcar == jobpompier3)
{In loc de:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407){De la job
Modifica acesta:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new newcar = GetPlayerVehicleID(playerid);
if(newcar == jobpompier || newcar == jobpompier1 || newcar == jobpompier2 || newcar == jobpompier3)
{
SendClientMessage(playerid, COLOR_RED, "* Tasteaza /pompier ");
}
return 0;
}Cu cel adaugat in GM
Adauga:
new newcar = GetPlayerVehicleID(playerid);
if(newcar == jobpompier || newcar == jobpompier1 || newcar == jobpompier2 || newcar == jobpompier3)
{In loc de:
De la comanda /pompier.if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407){
Pune astea:
In loc de cele adaugate din FS,iar la inceputul gamemodului unde ai "new"jobpompier = AddStaticVehicleEx(407, 1103.3850, -1246.4249, 16.0418, 0.0000, -1, -1, 100);
jobpompier1 = AddStaticVehicleEx(407, 1095.1766, -1245.9021, 16.0418, 0.0000, -1, -1, 100);
jobpompier2 = AddStaticVehicleEx(407, 1086.6315, -1246.2279, 16.0418, 0.0000, -1, -1, 100);
jobpompier3 = AddStaticVehicleEx(407, 1086.6494, -1227.3779, 16.0418, 271.3036, -1, -1, 100);Adauga astea:
new jobpompier;
new jobpompier1;
new jobpompier2;
new jobpompier3;Scuze daca e cam lung postul...Sa ma anunti daca merge
-
Uita-te in gm la include-uri,si adauga acel include la filterscript.Nu stiu sigur care ar fi,dar incearca cu fiecare
-
Sunt textdraw-uri "<" si ">" pentru culoarea 1 si "<" ">" pentru culoarea 2.Cand dau click pe ele imi da o singura culoare..
if(clickedid == SSelectDreapta[playerid])
{
new colorid;
if(colorid > 0 || colorid < 255)
{
new car = GetPlayerVehicleID(playerid);
ChangeVehicleColor(IDmasina[playerid], 1+5, colorid);
vUpdate(OwnedVeh(car), cColorOnex);
}
}
if(clickedid == SSelectStanga[playerid])
{
new colorid;
if(colorid > 0 || colorid < 255)
{
new car = GetPlayerVehicleID(playerid);
ChangeVehicleColor(IDmasina[playerid], 1-2, colorid);
vUpdate(OwnedVeh(car), cColorOnex);
}
}
if(clickedid == SSelectDDreapta[playerid])
{
new colorid;
if(colorid > 0 || colorid < 255)
{
new car = GetPlayerVehicleID(playerid);
ChangeVehicleColor(IDmasina[playerid], colorid, 1+2);
vUpdate(OwnedVeh(car), cColorTwox);
}
}
if(clickedid == SSelectSStanga[playerid])
{
new colorid;
if(colorid > 0 || colorid < 255)
{
new car = GetPlayerVehicleID(playerid);
ChangeVehicleColor(IDmasina[playerid], colorid, 1-1);
vUpdate(OwnedVeh(car), cColorTwox);
}
} -
Problema intalnita (descriere): Am incercat sa fac ca culoarea masini sa se schimbe de la 0 pana la 255 apasand un button dreapta,si cand dai butonul stanga sa coboare la 254,253...etc
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):ChangeVehicleColor(vehid, colorid, 1+2);
ChangeVehicleColor(vehid, colorid, colorid2+2);Imagini / Video (optional): Nu cred ca e nevoie,deoarece nu functioneaza deloc
Ati incercat sa rezolvati singur?: Da- 1
-
Buna,tot incerc sa fac ca culoarea masini sa se schimbe de la 0 pana la 255 apasand un buton dreapta,si cand dai butonul stanga sa coboare la 254,253...etc
Am incercat ceva in gen:
ChangeVehicleColor(vehid, colorid, 1+2);ChangeVehicleColor(vehid, colorid, colorid2+2);
Daca las prima varianta,merge,dar numai 1 culoare.
-
Posteaza comanda de la DMV
-
Primul checkpoint sau ultimul nu dispare? Macar ai incercat sa vezi?
-
Uite:
//-----------------[DMV-CPS]-----------------------------------------------------else if(CP[playerid]==80)
{
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid]==99)//Exam_01
{
if(IsPlayerInVehicle(playerid, examc))
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 100;
SetPlayerCheckpoint(playerid, 1149.3123,-1712.3945,13.3663,5.0);
}
}
else if(CP[playerid] == 100)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1149.3123,-1712.3945,13.3663,5.0);
CP[playerid] = 101;
}
else if(CP[playerid] == 101)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 102;
SetPlayerCheckpoint(playerid,1152.1296,-1647.6825,13.3586,5.0);
}
else if(CP[playerid] == 102)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 103;
SetPlayerCheckpoint(playerid,1143.6036,-1569.6876,12.8511,5.0);
}
else if(CP[playerid] == 103)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 104;
SetPlayerCheckpoint(playerid,1061.5269,-1569.8389,12.9559,5.0);
}
else if(CP[playerid] == 104)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 105;
SetPlayerCheckpoint(playerid,1008.8161,-1569.9691,12.9641,5.0);
}
else if(CP[playerid] == 105)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 106;
SetPlayerCheckpoint(playerid,960.9140,-1570.0966,12.9772,5.0);
}
else if(CP[playerid] == 106)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 107;
SetPlayerCheckpoint(playerid,926.1542,-1569.8929,12.9447,5.0);
}
else if(CP[playerid] == 107)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 108;
SetPlayerCheckpoint(playerid,915.2628,-1584.5763,12.9600,5.0);
}
else if(CP[playerid] == 108)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 109;
SetPlayerCheckpoint(playerid,914.2856,-1630.3322,12.9612,5.0);
}
else if(CP[playerid] == 109)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 110;
SetPlayerCheckpoint(playerid,914.3433,-1670.4269,12.9681,5.0);
}
else if(CP[playerid] == 110)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 111;
SetPlayerCheckpoint(playerid,933.6616,-1771.6304,13.1216,5.0);
}
else if(CP[playerid] == 111)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 112;
SetPlayerCheckpoint(playerid,1037.3101,-1792.0226,13.2581,5.0);
}
else if(CP[playerid] == 112)
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 113;
SetPlayerCheckpoint(playerid,1119.3994,-1715.5334,13.0519,5.0);
}
else if(CP[playerid] == 113)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleToRespawn(currentveh);
}
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "** The Instructor looks proud at %s and hands him a Driver License **", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
DisablePlayerCheckpoint(playerid);
PlayerInfo[playerid][pCarLic] = 1;
TakingLesson[playerid] = 0;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"[DMV]: Felicitari,ai trecut testul !");
KillTimer(dmvcounttimer);
}
if(newcar == DMV1 || newcar == DMV2 || newcar == DMV3 || newcar == DMV4 || newcar == DMV5){
if(TakingLesson[playerid] == 1)
{
KillTimer(dmvtimer1);
DMVCountDown(playerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"[instructor]:Urmeaza checkpointurile pentru a trece traseul.Ai la dizpozitie 90 de secunde ");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"[instructor]:Condu pe partea dreapta si ai grija la celelalte masini !");
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "** The Instructor starts the engine and lefts the car looking at %s **", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
format(string, sizeof(string), "** The Instructor waves to %s and shouts: Good Luck ! **", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
CP[playerid] = 100;
SetPlayerCheckpoint(playerid, 1101.8851,-1711.9829,12.9604,5.0);
}
Pune astea in loc de alea,astept reply...
-
Mai am aici , care e tot de la sistem , asa era pus de cel care a facut tutorialul ...
if(newcar == DMV1 || newcar == DMV2 || newcar == DMV3 || newcar == DMV4 || newcar == DMV5) { if(TakingLesson[playerid] == 1) { KillTimer(dmvtimer1); DMVCountDown(playerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,"[Instructor]:Urmeaza checkpointurile pentru a trece traseul.Ai la dizpozitie 90 de secunde "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"[Instructor]:Condu pe partea dreapta si ai grija la celelalte masini !"); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "** The Instructor starts the engine and lefts the car looking at %s **", name); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, sizeof(string), "** The Instructor waves to %s and shouts: Good Luck ! **", name); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); CP[playerid] = 100; SetPlayerCheckpoint(playerid, 1101.8851,-1711.9829,12.9604,5.0); }
Pune coordonatele astea la SetPlayerCheckpoint din sistemul de deasupra:
1149.3123,-1712.3945,13.3663,5.0Incearca asa :)
-
http://pastebin.com/
Incarca codul pe acest site si posteaza link-ul
-
Unde ar trebui sa il pun?La OnGameModeInit?
-
Bravo,foarte frumos pentru inceput. 9/10
-
Esti sigur ca aia e linia?
-
Trebuie sa descarci 0.3z si sa copiezi tot din el in serverul tau,apoi intri in "server.cfg" si adaugi gm-ul si filterscripturile...
-
Buna,vreau sa fac ca o masina cand are health 0,adica ar trebui sa explodeze.Sa ramana la health 0,dar sa fie in flacari fara a exploda pana la venirea pompierilor,cand focul este stins.Playerul va putea urca in masina sa o conduca,dar pana este in flacari playerul nu va putea merge cu masina,ca si un fel de freeze la masina.
Am incercat asa:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:health;
new veh = GetPlayerVehicleID(i);
GetVehicleHealth(veh, health);
if(health == 0)
{
new Float:vehx, Float:vehy, Float:vehz;
SetVehicleHealth(veh, 1000);
CreateObject(3461, i, vehx, vehy, vehz-2.61, 0, 0, 0.0);
GetVehiclePos(i, vehx, vehy, vehz);
TogglePlayerControllable(i, false);
if(PlayerInfo[pLeader] == 4 && PlayerInfo[pMember] == 4)
{
SendClientMessage(i, COLOR_LIGHTRED, "ALERT!!! A car is on fire,go to the vehicle fast!");
SetPlayerCheckpoint(i, vehx, vehy, vehz, 5.0);
if(PlayerToPoint(i, vehx, vehy, vehz))
{
DisablePlayerCheckpoint(i);
TogglePlayerControllable(i, true);
}
}
}
}
}
-
Scuze uitasem sa mai modific ceva la comanda...
pune "gEngine[vid]" in loc de "gEngine[playerid]"
-
Foarte frumos, 10/10.
Mie cel putin nu imi merge,ma loghez cu rcon si scriu /snow sau /snowon si nu se intamplat nimic.
-
Nu vad sa aiba vreo legatura...
-
Deasupra si dedesubt lui "stock SetVehicleModel(vehicleid, model)" ce ai?
-
gNewb nu este folosit nici unde,ar trebui sa il scoti.
Linia 3502 ,posteaz-o te rog.
-
Adauga:
new string[128];Deasupra lui "format(string, sizeof...."
-
Scoate-l de acolo new trivia si incearca sa adaugi asa:
public TriviaEvent(){
new Trivia [ 21 ] [ Trivia_ENUM ];
typet = random(MAX_QUESTIONS);
format(string, sizeof(string), " %s ", Trivia [typet] [tIntrebare]);
SendClientMessageToAll(COLOR_LIGHTRED, string);
endt =1;
timertrivia = SetTimer("TriviaEnd", 360000, false);
return 1;
}
-
Pune asta in locul celuilalt:
public TriviaEvent(){
new Trivia [ 21 ] [ Trivia_ENUM ];
typet = random(MAX_QUESTIONS);
SendClientMessageToAll ( -1, Trivia [ typet ] [ tIntrebare ] );
endt =1;
timertrivia = SetTimer("TriviaEnd", 360000, false);
return 1;
}
Daca iti da eroare,posteaza eroarea.
-
Adauga:
new Trivia [ 21 ] [ Trivia_ENUM ];La public TriviaEvent ,deasupra lui "typed = random(MAX_QUESTIONS);"
2 probleme
in Arhivă probleme
Posted
Fanta,uita-te deasupra postarii lui NoNamed,incearca si anunta-ma daca a mers.