10.04.2010, 03:55
Quote:
Originally Posted by JustinB
One Question how Do I make It so I wont be able to use ramps? I dont wanna use the ramps in my server
|
CreateObject(18045, 2145.7341, 621.9348, -2.4793, 0.0000, 0.0000, 0.0000);
CreateObject(980, 2148.0691, 622.3141, -2.7731, 0.0000, 0.0000, 270.0000);
CreateObject(1497, 2150.7195, 617.3950, -4.4584, 0.0000, 0.0000, 0.0000);
CreateObject(2047, 2138.3357, 620.3701, -2.8068, 0.0000, 0.0000, 90.0000);
CreateObject(2047, 2141.2249, 616.7316, -2.8672, 0.0000, 0.0000, 180.0000);
CreateObject(2047, 2139.3372, 616.7316, -2.8720, 0.0000, 0.0000, 180.0000);
CreateObject(2738, 2144.0212, 617.1321, -3.8686, 0.0000, 0.0000, 180.0000);
CreateObject(2700, 2143.7385, 616.7316, -1.6944, 0.0000, 0.0000, 90.0000);
CreateObject(2603, 2139.4929, 626.6632, -4.0109, 0.0000, 0.0000, 270.0000);
CreateObject(2603, 2139.6816, 618.1268, -4.0182, 0.0000, 0.0000, 90.0000);
CreateObject(2627, 2139.3108, 623.0800, -4.4707, 0.0000, 0.0000, 90.0000);
CreateObject(2521, 2144.0156, 617.2038, -4.4731, 0.0000, 0.0000, 180.0000);
CreateObject(2226, 2141.6265, 616.9212, -3.4890, 0.0000, 0.0000, 180.0000);
CreateObject(2136, 2143.8333, 626.7443, -4.4630, 0.0000, 0.0000, 0.0000);
CreateObject(2103, 2143.9705, 626.7836, -3.4358, 0.0000, 0.0000, 0.0000);
CreateObject(2100, 2146.4778, 616.6164, -4.4650, 0.0000, 0.0000, 180.0000);
CreateObject(2097, 2146.2373, 626.7803, -4.1639, 0.0000, 0.0000, 0.0000);
CreateObject(1828, 2143.8252, 622.4410, -4.4488, 0.0000, 0.0000, 0.0000);
CreateObject(1812, 2140.6658, 626.6936, -4.4763, 0.0000, 0.0000, 270.0000);
CreateObject(18059, 2148.0979, 620.4362, -4.0921, 0.0000, 0.0000, 270.0000);
CreateObject(949, 2148.6145, 620.4506, -3.1102, 0.0000, 0.0000, 0.0000);
CreateObject(949, 2148.6235, 623.5414, -3.0754, 0.0000, 0.0000, 0.0000);
CreateObject(949, 2148.6252, 626.5779, -3.1102, 0.0000, 0.0000, 0.0000);
CreateObject(949, 2148.6096, 617.3898, -3.1352, 0.0000, 0.0000, 0.0000);
or this one
forward Keys();
public Keys()
{
new keys, updown, leftright, playerid;
new Float, Float:y, Float:z, Float:angle;
for (playerid = 0; playerid < MAX_PLAYERS; playerid++) {
if (IsPlayerConnected(playerid)) {
GetPlayerKeys(playerid, keys, updown, leftright);
if (keys & KEY_ACTION && IsPlayerInAnyVehicle(playerid)) {
if (!keydown[playerid]) {
keydown[playerid] = true;
if (rampid[playerid] == -1) {
GetPlayerPos(playerid, x, y, z);
angle = GetXYInFrontOfPlayer(playerid, x, y, GetOptimumRampDistance(playerid));
switch (playerramptypes[playerid]) {
case 2:
{
angle -= 90.0;
if (angle < 0.0) angle += 360.0;
z += 0.5;
}
case 1:
{
z -= 0.5;
}
}
rampid[playerid] = CreateObject(ramptypes[playerramptypes[playerid]], x, y, z - 0.5, 0.0, 0.0, angle);
SetTimerEx("RemoveRamp", 2000, 0, "d", playerid);
}
}
} else keydown[playerid] = false;
}
}
return 1;
}
not sure i think ithe second one