Jump to content
  • 0

o problema


w3bz

Question

Salut am si eu o problema cu masinile personale 

 

if(CarInfo[vehicleid][cOwned] == 1 && !ispassenger)
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAdmin] >= 1338)
{
new string[128];
format(string,sizeof(string),"{66CCFF}Vehicul privat al jucatorului{FF9933} %s !", CarInfo[vehicleid][cOwner]);
SendClientMessage(playerid, COLOR_GREY, string);
}
else if(vehicleid != PlayerInfo[playerid][pCar] && vehicleid != PlayerInfo[playerid][pCar2] && vehicleid != PlayerInfo[playerid][pCar3])
{
new string[128];
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx,  cy, cz);
format(string,sizeof(string),"{66CCFF}Vehicul privat al jucatorului{FF9933} %s !", CarInfo[vehicleid][cOwner]);
SendClientMessage(playerid, COLOR_GREY, string);
RemovePlayerFromVehicle(playerid);
}
}
 
if(IsAnPersonalCar(vehicleid))
{
ChangeVehicleColor(vehicleid,CarInfo[vehicleid][cColorOne],CarInfo[vehicleid][cColorTwo]);
}
return 1;
}
 
 
Am scris pentru sistemul de masini sa nu ii lase sa ia masina .. nu mi da nicio erroare la copilere intru in joc si nu mi zice ca e masina privata . imi zice ti daca vreti sa mai las ceva. Mi se salveaza masina in masini.cfg scrie ca eu sunt owner dar tot nu mi zice masina privata.. 
Edited by w3bz
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Topic inchis , respecta modelu

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

 

Link to comment
Share on other sites

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.