Problem with car spawning command
#2

You should try identing your code using the "TAB" Key next time ...

pawn Код:
if (strcmp(cmdtext, "/vagis", true) == 0)
{
    new Float:X, Float:Y, Float:Z, Float:Angle;
    if(stipnieks != 0) return SendClientMessage(playerid, COLOR_GREY, "Turnirs vel nav sacies!");
    else
    {
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    if(carer[playerid] == 1)
    {
        if(IsAnyPlayerInVehicle(Veh[playerid]))
        {
            for(new i=0; i<GetMaxPlayers(); i++)
            {
                if(GetPlayerVehicleID(i) == Veh[playerid])
                {
                    RemovePlayerFromVehicle(i);
                }
            }
        }
    PutPlayerInVehicle(playerid, Veh[playerid], 0);
    SetVehiclePos(Veh[playerid], X, Y, Z);
    SetVehicleZAngle(Veh[playerid], Angle);
    }
    else
    {
        carer[playerid] = 1;
        Veh[playerid] = CreateVehicle(583, X, Y, Z+50, Angle, Colors[random(sizeof Colors)], Colors[random(sizeof Colors)], 10000);
        PutPlayerInVehicle(playerid, Veh[playerid], 0);
        SetVehiclePos(Veh[playerid], X, Y, Z);
        SetVehicleZAngle(Veh[playerid], Angle);
        return 1;
    }
}
Reply


Messages In This Thread
Problem with car spawning command - by Dominiks - 16.07.2009, 21:05
Re: Problem with car spawning command - by woot - 16.07.2009, 21:12
Re: Problem with car spawning command - by Dominiks - 16.07.2009, 21:16
Re: Problem with car spawning command - by refshal - 16.07.2009, 21:18
Re: Problem with car spawning command - by Dominiks - 16.07.2009, 21:26
Re: Problem with car spawning command - by refshal - 16.07.2009, 21:28
Re: Problem with car spawning command - by Dominiks - 16.07.2009, 21:37
Re: Problem with car spawning command - by refshal - 17.07.2009, 01:11
Re: Problem with car spawning command - by Dominiks - 17.07.2009, 06:27
Re: Problem with car spawning command - by woot - 17.07.2009, 07:02

Forum Jump:


Users browsing this thread: 1 Guest(s)