17.12.2009, 12:54
I'm just a suggestion
remplace
by
put down the script
is the same code in less time
remplace
Код:
if(strcmp(cmd, "/Landstalker", true) == 0) { GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, ang); CreateVehicle(400, x+1, y+1, z+1, 0, 0, 0, 600); SetVehicleZAngle(VehicleID, ang); return 1; }
Код:
if(strcmp(cmd, "/Landstalker", true) == 0) { CreatCar(playerid,400); return 1; }
Код:
stock CreatCar(playerid,IDC) { new Float:x, Float:y, Float:z, Float:ang; new VehicleID = GetPlayerVehicleID(playerid); GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, ang); CreateVehicle(IDC, x+1, y+1, z+1, 0, 0, 0, 600); SetVehicleZAngle(VehicleID, ang); return 1; }