29.08.2010, 15:58
for(new i = 0; i < sizeof(CarInfo); i++)
{
new newcar = GetPlayerVehicleID(playerid);
new keycar = PlayerInfo[playerid][pAutoVoti];
new string[256];
if(newcar == CarInfo[i][ownedvehicle])
{
if(CarInfo[i][cOwned]==0)
{
TogglePlayerControllable(playerid, 0);
CarOffered[playerid]=1;
format(string,sizeof(string),"Sхiduk[%s] Hind[%d] ",CarInfo[i][cDescription],CarInfo[i][cValue]);
SendClientMessage(playerid,ROHELINELIME,"[Autopood]");
SendClientMessage(playerid,VALGE,string);
SendClientMessage(playerid,VALGE,"Ostmiseks: /ostaauto");
SendClientMessage(playerid,VALGE,"Vдljumiseks: /sхiduk vдlju");
SendClientMessage(playerid,ROHELINELIME,"[--------]");
}
if(CarInfo[i][cOwned]==1)
{
format(string,sizeof(string),"Sхiduki omanik: %s",CarInfo[i][cOwner]);
SendClientMessage(playerid,SININE,string);
}
}
}
return 1;
}
i want that other people cant drive with my car
anybody help?
{
new newcar = GetPlayerVehicleID(playerid);
new keycar = PlayerInfo[playerid][pAutoVoti];
new string[256];
if(newcar == CarInfo[i][ownedvehicle])
{
if(CarInfo[i][cOwned]==0)
{
TogglePlayerControllable(playerid, 0);
CarOffered[playerid]=1;
format(string,sizeof(string),"Sхiduk[%s] Hind[%d] ",CarInfo[i][cDescription],CarInfo[i][cValue]);
SendClientMessage(playerid,ROHELINELIME,"[Autopood]");
SendClientMessage(playerid,VALGE,string);
SendClientMessage(playerid,VALGE,"Ostmiseks: /ostaauto");
SendClientMessage(playerid,VALGE,"Vдljumiseks: /sхiduk vдlju");
SendClientMessage(playerid,ROHELINELIME,"[--------]");
}
if(CarInfo[i][cOwned]==1)
{
format(string,sizeof(string),"Sхiduki omanik: %s",CarInfo[i][cOwner]);
SendClientMessage(playerid,SININE,string);
}
}
}
return 1;
}
i want that other people cant drive with my car
anybody help?