Jump to content
  • 0

Question

Posted

Nick:Wifi

Problema:Am si eu o problema cu masinile personale , dupa ce dau respawn la masini , masinile personale se distrug si nu se mai respawneaza la loc

Erori / warnings:-

Lini/script:Mai jos

Ai incercat sa rezolvi singur ?:Da , am incercat mai multe coduri de creat masini personale si la toate aceeasi buba , dispar cand folosesc comanda /respawncars

[pawn]new vehicleid = GetPlayerVehicleID(playerid);

GetPlayerName(playerid, pname, sizeof pname);

    if(newstate == PLAYER_STATE_DRIVER)

{

    if(vehicleid == WiFi)

    {

        if(strcmp(pname, "WiFi", true) ==0)

        {

            return 1;

            }

            else

            {

RemovePlayerFromVehicle(playerid);

SendClientMessage(playerid,red,"This car is Owned by WiFi.");

}

}

}[/pawn]

3 answers to this question

Recommended Posts

Posted

Respecta modelul,si creeaza o comanda spre exemplu /raoc pentru a respawna doar masinile personale.

 

 

Posted

Da dar degeaba o sa o fac, de ex eu voi folosi comanda aia doar pentru masini personale dar o sa am nevoie si de comanda normala si daca folosesc comanda normala inseamna ca , comanda de respawnat masini personale este inutila pentru ca masinile personale vor disparea si v-a trebui sa dau rr sa apara la loc

Posted

Fa un stock unde sa se creeze din nou masinile sau , daca nu este in acelasi GM/FS comanda respawncars cu masinile pers , fa in fs-u cu masini personale un public ex:

public RespawnPCars()

{

wifi = Create.... si ce mai vrei tu

}

la comanda respawncars pui SetTimer... pt acest public , succes si te astept cu reply.

EDIT: Topic inchis , 48h+ fara reply.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.