/car command not working
#9

pawn Код:
COMMAND:car(playerid, params[])
{
    if(DMZone[playerid] == 0)
    {
        new vehiclename, carcolour1, carcolour2;
        if(sscanf(params, "iii", vehiclename, carcolour1, carcolour2)) return SendClientMessage(playerid, 0xFF00FFFF, "[Incorrect Usage!] [Correct Usage]- /car (vehicle name) (colour1) colour2)");
        {
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, A);
            X += (5 * floatsin(-A, degrees));
             Y += (5 * floatcos(-A, degrees));
            new model = GetVehicleModelIDFromName(vehiclename)
            AddStaticVehicleEx(model,X+2, Y+2, Z+5, 0, carcolour1, carcolour2, -1);
            PutPlayerInVehicle(playerid,model, 0);
            SetVehicleHealth(model, 998);
         }
     }
if(DMZone[playerid] == 1) return SendClientMessage(playerid, COLOR_RED,"ERROR: You are in a DM Zone");
    return 1;
}
Reply


Messages In This Thread
/car command not working - by Swyft™ - 23.06.2012, 16:23
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:31
Re: /car command not working - by Swyft™ - 23.06.2012, 16:36
Re: /car command not working - by igal4576 - 23.06.2012, 16:36
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:39
Re: /car command not working - by Swyft™ - 23.06.2012, 16:42
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:47
Re: /car command not working - by Swyft™ - 23.06.2012, 16:50
Respuesta: /car command not working - by Chris1337 - 23.06.2012, 16:58
Re: /car command not working - by Swyft™ - 23.06.2012, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)