#4

pawn Код:
case 17:
{
    new vehiclemodel = random(212)+400;
    new Float:pPos[4];
    new vId;
    while(!IsValidVehicleID(vehiclemodel))
    {
        vehiclemodel = random(212)+400;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
        DestroyVehicle(GetPlayerVehicleID(playerid));
    }
    GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
    GetPlayerFacingAngle(playerid, pPos[3]);
    vId = CreateVehicle(vehiclemodel, pPos[0], pPos[1], pPos[2], pPos[3], random(127), random(127), 60*1000);
    PutPlayerInVehicle(playerid, vId, 0);
}
Why peoples like mess in their scripts, this one looks more clean
Reply


Messages In This Thread
WTH? - by Nonameman - 13.08.2010, 20:11
Re: WTH? - by Luis- - 13.08.2010, 20:14
Re: WTH? - by Nonameman - 13.08.2010, 20:43
Re: WTH? - by ikey07 - 13.08.2010, 20:45
Re: WTH? - by Nonameman - 13.08.2010, 21:05
Re: WTH? - by ikey07 - 13.08.2010, 21:08
Re: WTH? - by Nonameman - 13.08.2010, 21:11
Re: WTH? - by Nonameman - 14.08.2010, 00:58
Re: WTH? - by DiddyBop - 14.08.2010, 01:35
Re: WTH? - by Mike_Peterson - 14.08.2010, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)