25.01.2013, 19:15
Hello,
I am trying to create something so if player exit a vehicle Here a Brownstreak the vehicle will be destroyed.
This is my code for spawn into a Brownstreak. Never tested it because i am on my netbook. So, Should it be working?
Thanks,
Se7evolution
I am trying to create something so if player exit a vehicle Here a Brownstreak the vehicle will be destroyed.
This is my code for spawn into a Brownstreak. Never tested it because i am on my netbook. So, Should it be working?
pawn Code:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == checkpointtele)
{
brownstreakLS = AddStaticVehicleEx (538, 1699.156494, -1953.658203, 14.875619, 82.2873, -1, -1, 1);
PutPlayerInVehicle(playerid,brownstreakLS,0);
SendClientMessage(playerid, 0x9370DBFF, "You have been spawned into a Train. If you exit the train it will get destroyed.");
SendClientMessage(playerid, 0x9370DBFF, "Please enter the command /work to get a mission!");
SetPlayerVirtualWorld(playerid, 0);
}
return 1;
}
Se7evolution