Reserved Vehicles
#10

pawn Код:
if(strcmp(cmd, "/mycar", true) == 0)
    {
        new Float:X, Float:Y, Float:Z, Float:Angle, PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        if(strcmp(PlayerName, "Cir.Cuz") == 0)
        {
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Angle);
            SetVehiclePos(SampleCar1, X, Y, Z);
            SetVehicleZAngle(SampleCar1, Angle);
            PutPlayerInVehicle(playerid, SampleCar1, 0);
        }
        return 1;
    }
    return 0;
}
Thats the /mycar command. Please help
Reply


Messages In This Thread
Reserved Vehicles - by Kudoz - 24.04.2012, 20:17
Re: Reserved Vehicles - by ViniBorn - 24.04.2012, 20:26
Re: Reserved Vehicles - by Kudoz - 25.04.2012, 05:21
Re: Reserved Vehicles - by Ballu Miaa - 25.04.2012, 05:39
Re: Reserved Vehicles - by Jikesh - 25.04.2012, 06:07
Re: Reserved Vehicles - by Ballu Miaa - 25.04.2012, 06:09
Re: Reserved Vehicles - by Kudoz - 25.04.2012, 10:22
Re: Reserved Vehicles - by Kudoz - 26.04.2012, 20:18
Re: Reserved Vehicles - by Ballu Miaa - 27.04.2012, 03:27
Re: Reserved Vehicles - by Kudoz - 03.05.2012, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)