01.03.2012, 00:50
When some new player login into my server, the tutorial text doesnt go away. And how do i add script for vehicle storage? the vehicle should spawn where it was last parked.
#include <a_samp>
new Float:Vx[MAX_VEHICLES], Float:Vy[MAX_VEHICLES], Float:Vz[MAX_VEHICLES];
new Vehicle[MAX_VEHICLES];
public OnFilterScriptInit()
{
Vehicle[0] = CreateVehicle(555, 0.0, 0.0, 0.0, 0.0, 0, 1, 60);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/parked", cmdtext, true, 10) == 0)
{
new VID;
VID = GetPlayerVehicleID(playerid);
DestroyVehicle(VID);
Vehicle[VID] = CreateVehicle(555, Vx[VID], Vy[VID], Vz[VID], 0.0, 0, 1, 60);
return 1;
}
return 0;
}
Try testing this:
pawn Код:
|