Vehicles disappearing
#4

pawn Код:
CarSpawner(playerid, model)
{
    if(model == 432 || model == 520 || model == 425)
    {
        if(PlayerInfo[playerid][Level] <= 3)
        {
            return LangMSG(playerid, -1, ""er"Only admins can spawn this", ""er"Nur Admins kцnnen das spawnen");
        }
    }
        if(PlayerInfo[playerid][Vehicle] != -1)
        {
            DestroyVehicle(PlayerInfo[playerid][Vehicle]);
            PlayerInfo[playerid][Vehicle] = -1;
        }  

    new
        Float:POS[4],
        string[18];

    GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
    GetPlayerFacingAngle(playerid, POS[3]);
    PlayerInfo[playerid][Vehicle] = CreateVehicle(model, POS[0], POS[1], POS[2], POS[3], -1, -1, -1);
    SetVehicleVirtualWorld(PlayerInfo[playerid][Vehicle], GetPlayerVirtualWorld(playerid));
    LinkVehicleToInterior(PlayerInfo[playerid][Vehicle], GetPlayerInterior(playerid));
    SetVehicleNumberPlate(PlayerInfo[playerid][Vehicle], ""red"NGS");
    SetVehicleToRespawn(PlayerInfo[playerid][Vehicle]);
    PutPlayerInVehicle(playerid, PlayerInfo[playerid][Vehicle], 0);
    return 1;
}
At the command this function gets called.

Quote:
Originally Posted by Sr_Piky
Посмотреть сообщение
update server to 0.3x
No its working on other big servers too.
Reply


Messages In This Thread
Vehicles disappearing - by Mellnik - 19.01.2013, 19:52
Re: Vehicles disappearing - by DeathOnaStick - 19.01.2013, 19:55
Re: Vehicles disappearing - by Sr_Piky - 19.01.2013, 19:58
AW: Vehicles disappearing - by Mellnik - 19.01.2013, 20:02
Re: Vehicles disappearing - by DeathOnaStick - 19.01.2013, 20:18
AW: Re: Vehicles disappearing - by Mellnik - 19.01.2013, 20:26
Re: Vehicles disappearing - by DeathOnaStick - 19.01.2013, 20:43
AW: Re: Vehicles disappearing - by Mellnik - 19.01.2013, 20:49

Forum Jump:


Users browsing this thread: 2 Guest(s)