06.02.2014, 21:52
Remplace
en
PHP Code:
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if(carid >= 184)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
format(string, sizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
GameTextForPlayer(playerid, "Vous avez garer ce vehicule a cette position. Il reaparetra ici.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
DestroyVehicle(carid);
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Ce vйhicule ne peut pas кtre agarer!");
return 1;
}
}
PHP Code:
if(PlayerInfo[playerid][pAdmin] >= 3)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
format(string, sizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
GameTextForPlayer(playerid, "Vous avez garer ce vehicule a cette position. Il reaparetra ici.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
DestroyVehicle(carid);
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
return 1;
}