Server unknown command
#5

pawn Код:
CMD:plock(playerid, params[])
{
    new id = GetClosestCar(playerid);
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(id, engine, lights, alarm, doors, bonnet, boot, objective);
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    if(strcmp(VehicleOwner[id], playername, true) == 0)
    {
    if(doors == 1)
    {
        doors = 0;
        VehicleLock[id] = 0;
        SendClientMessage(playerid, COLOR_GREEN, "Unlocked.");
    }
    else
    {
        doors = 1;
        VehicleLock[id] = 1;
        SendClientMessage(playerid, COLOR_RED, "Locked.");
    }
    SetVehicleParamsEx(id, engine, lights, alarm, doors, bonnet, boot, objective);
    SaveVehicle(id);
    return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Server unknown command - by TonyII - 16.09.2013, 15:03
Re: Server unknown command - by xganyx - 16.09.2013, 15:09
Re: Server unknown command - by TonyII - 16.09.2013, 15:12
Re: Server unknown command - by Dragonsaurus - 16.09.2013, 15:14
Re: Server unknown command - by TonyII - 16.09.2013, 15:16
Re: Server unknown command - by Dragonsaurus - 16.09.2013, 15:20
Re: Server unknown command - by TonyII - 16.09.2013, 15:22
Re: Server unknown command - by Dragonsaurus - 16.09.2013, 15:30
Re: Server unknown command - by TonyII - 16.09.2013, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)