09.09.2012, 12:13
How To Create Pickups That Create Cars??
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == carpickup)
{
new Float:X, Float:Y, Float:Z, Float:ang;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, ang);
CreateVehicle(vehicletype, X, Y, Z+2, ang, color1, color2, 0);
}
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cmarker)
{
PutPlayerInVehicle(playerid,vehicleid,seatid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Car Spawned!"); // Message the player;
}