if(!strcmp(cmdtext, "/asellcar", true)) //
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " ??????? ????????????!");
return 1;
}
if(!IsAtDealership(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " You are not at dealership ! ");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
new vehid = GetPlayerVehicleID(playerid);
new Float:x,Float:y,Float:z;
new Float:a;
CarInfo[vehid][cOwned] = 0;
strmid(CarInfo[vehid][cOwner], "Dealership", 0, strlen("Dealership"), -1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~w~You have admin sold the vehicle", 10000, 3);
GetVehiclePos(vehid, x, y, z);
GetVehicleZAngle(vehid, a);
CarInfo[vehid][cLocationx] = x;
CarInfo[vehid][cLocationy] = y;
CarInfo[vehid][cLocationz] = z;
CarInfo[vehid][cAngle] = a;
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
OnPropUpdate();
DestroyVehicle(vehid);
CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],CarInfo[vehid][cColorOne],
CarInfo[vehid][cColorTwo],172800000);
//new textid = GetPlayerVehicleID(playerid);
//Delete3DTextLabel(Numbertext[textid]);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You're not authorized to use that command !");
return 1;
}
}
return 1;
}
Страница 1 из 1
5error 1warning
#3
Отправлено 21 января 2012 - 15:28

Это наверно уже строки где ошибки

Сообщение отредактировал Stas: 21 января 2012 - 15:29
Поделиться темой:
Страница 1 из 1