Eroare server SAMP

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
User avatar
G|zMoNDo
Membru, skill 0
Membru, skill 0
Posts: 33
Joined: 30 Nov 2009, 10:17
Detinator Steam: Da
CS Status: Nu`s !!!
Detinator server CS: Da
SteamID: cs0483
Location: Alba
Has thanked: 1 time

04 Dec 2010, 13:50

Salut , mi-am facut un server de SAMP de 1 an si am vazut ca intra jucatori , cativa prieteni de-ai mei mi-au spus sa pun TRAILER de camion , treaba e ca nu stiu cum sa il pun pe server :|
Ales Bules Prafu' s-o Ales =))
RoyalServer
Ionut
Fost moderator
Fost moderator
Posts: 3927
Joined: 28 Jul 2008, 23:10
Detinator Steam: Da
SteamID: intzor
Reputatie: Fost eXtream Mod
Nume anterior: blanq, filtzeR
Fost Membru Club eXtreamCS (doua luni)
Location: Constanta
Has thanked: 142 times
Been thanked: 243 times

04 Dec 2010, 15:01

1. Intri in server.
2. Iti alegi masina care o vrei, sau o spawnezi cu /veh sau /vehicle depinde ce comanda aveti.
3. O bagi in ce loc vrei tu sa ramana.
4. Dai /save , dupa care iti apare Veh Possition Save.
5. Iesi din server.
6. Intri unde ai instalat GTA SA.
7. Cauti " Saved possition.txt " apoi intri in el.
8. Si scolo ai " AddStaticVehicle ".
9. Selectezi ultimul rand ( echivalent cu ultima masina salvata ) si dai copy.
10. Intri in GM.
11. Cauti " OnGameModeInit " , dai paste acolo si apoi edit - compile.

Atentie ! Cand dai /save trebuie sa fi in masina.

Daca nu ai comenda /veh pusa in gm, iat-o:
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, 0xA8A8FFFF, " Ne pare rau , dar tu nu ai accesul la comanda aceasta !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Culoarea trebe sa fie intre 0 si 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y +3,Z, 0.0, color1, color2, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
format(string, sizeof(string), "Ai spawnat masina cu id %d ", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}
Always on ten, always too loud
Always too hard for this boujee ass crowd
Even these haters, they love my style
So, I don't know what you talkin' about
Post Reply

Return to “Discutii generale”

  • Information