Car Spawn
#4

pawn Код:
new Scar[MAX_PLAYERS];//at top with other variables

public OnPlayerSpawn(playerid)
{
    new Float:x,Float:y,Float:z,Float:ang;
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,ang);
    Scar[playerid] = CreateVehicle(522,x,y,z,ang,-1,-1,-1);//nrg
    PutPlayerInVehicle(playerid,Scar[playerid],0)
    return 1;
}
EDIT: Be carefull if you have interior spawns. If you have interior spawns add a check.
Reply


Messages In This Thread
Car Spawn - by fie - 01.09.2010, 07:28
Re: Car Spawn - by [HiC]TheKiller - 01.09.2010, 07:31
Re: Car Spawn - by fie - 01.09.2010, 07:33
Re: Car Spawn - by iggy1 - 01.09.2010, 07:38
Re: Car Spawn - by LarzI - 01.09.2010, 07:39

Forum Jump:


Users browsing this thread: 2 Guest(s)