12.10.2010, 10:47
pawn Код:
Shamal[0] = AddStaticVehicle( // enter co-ordinates here
Shamal[1] = AddStaticVehicle ( //
...
CMD:enter(playerid,params[])
{
new Float:shamx,Float:shamy,Float:shamz;
new Float:px, Float:py, Float:pz;
GetPlayerPos(playerid,px,py,pz);
for(new i = 0; i < sizeof(shamal);i++)
{
GetVehiclePos(Shamal[i],shamx,shamy,shamz);
if(floatsqrt((px-shamx)*(px-shamx)+(py-shamy)*(py-shamy)+(pz-shamz)*(pz-shamz)) < 3) // count the brackets here
{
SetPlayerVirtualWorld(playerid,250+i);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,2.57, 33.14, 1200);
break;
}
}
return 1;
}
Bonus points if you also give the player a parachute.