02.12.2009, 20:13
Quote:
Originally Posted by [WsR
RyDeR ]
Take an example of this. I made this months before: Код:
#include <a_samp> new bool:CreatedRamp[MAX_PLAYERS]; new Ramp; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Ramp Spawning by [WsR]RyDeR - Loaded -"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { new i = 0; while(i < MAX_PLAYERS) { CreatedRamp[i] = false; DestroyPlayerObject(i, Ramp); i++; } return 1; } public OnPlayerDisconnect(playerid) { if(CreatedRamp[playerid] == true) DestroyPlayerObject(playerid, Ramp), CreatedRamp[playerid] = false; CreatedRamp[playerid] = false; return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (IsPlayerInAnyVehicle(playerid)) { if(newkeys == KEY_FIRE) { if(CreatedRamp[playerid] == true) DestroyPlayerObject(playerid, Ramp), CreatedRamp[playerid] = false; new Float:pX,Float:pY,Float:pZ,Float:vA, Arabam = GetPlayerVehicleID(playerid); GetVehiclePos(Arabam, pX, pY, pZ); GetVehicleZAngle(Arabam, vA); Ramp = CreatePlayerObject(playerid, 1632, pX + (20.0 * floatsin(-vA, degrees)), pY + (20.0 * floatcos(-vA, degrees)), pZ, 0, 0, vA); CreatedRamp[playerid] = true; } } return 1; } |
| <my car shape | my shape
hope so you can.