- 0
4 erorri
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
eXtreMe96
stock aCreateThing(playerid, thingid, orderid) { new Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); if(thingid != 597) { [b]rindul 101[/b] Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, random(126), random(126), 30); } else { Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, 0, 1, 30); } PutPlayerInVehicle(playerid, Vehicle[orderid], 0); TogglePlayerControllable(playerid, true); return 1; } GetVehicleWithinDistance(Float:x1, Float:y1, Float:z1, Float:dist, &veh) { new Float:x2, Float:y2, Float:z2, Float:d; for(new i = 1; i < MAX_VEHICLES; i++) { if(GetVehicleModel(i) > 0) { GetVehiclePos(i, x2, y2, z2); x2 -= x1; y2 -= y1; z2 -= z1; d = x2*x2 + y2*y2 + z2*z2; if(d < dist) { veh = i; dist = d; } } } } Float:GetRampDistance(playerid) { new ping = GetPlayerPing(playerid), Float:dist; dist = floatpower(ping, 0.25); dist = dist*4.0; dist = dist+5.0; return dist; } Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance) { new Float:a; GetPlayerPos(playerid, x, y, a); if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a); else GetPlayerFacingAngle(playerid, a); x += (distance * floatsin(-a, degrees)); y += (distance * floatcos(-a, degrees)); return a; } IsVehicleRcTram(vehicleid) { switch(GetVehicleModel(vehicleid)) { case D_TRAM, RC_GOBLIN, RC_BARON, RC_BANDIT, RC_RAIDER, RC_TANK: return 1; } return 0; }Ma ajutati va rog sa le rezolv
lol
7 answers to this question
Recommended Posts