Server unknown command
#9

Alright, this brought me to a better point, but it's all reversed now so the owner can't unlock it but anyone else can, so thanks for the help I think I can handle it from here. For those who are interested in the codes.
pawn Код:
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);
    }
    else SendClientMessage(playerid, -1, "You do not own the closest vehicle!");
    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)