06.12.2013, 03:37
How To Create Such Sort Of a Pickup That When a Player Touches It He Gets a Vehicle...
new pickup;
public OnGameModeInit()
{
pickup = CreatePickup(1247,1,x,y,z,0);
return 1;
}
public OnPlayerPickUpPickup(playerid,pickupid)
{
if(pickupid == pickup)
{
new Float:Pos[4];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2];
GetPlayerFacingAngle(playerid,Pos[3]);
CreateVehicle(560,Pos[0],Pos[1],Pos[2],Pos[3],random(225),random(225),60);
}
return 1;
}