03.09.2010, 17:31
/*dcmd_lock(playerid, params[])
{
#pragma unused params
new veh = GetPlayerVehicleID(playerid);
if(car1[playerid] == veh || car2[playerid] == veh || car3[playerid] == veh)
{
SendClientMessage(playerid, GREY, "[VEHICLE] Your vehicle is locked.");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(i == playerid) continue;
SetVehicleParamsForPlayer(veh,i,0,1);
}
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, LIGHTRED, "You are not owning this vehicle.");*/
return 1;
}
dcmd_unlock(playerid, params[])
{
#pragma unused params
new veh = GetPlayerVehicleID(playerid);
if(car1[playerid] == veh || car2[playerid] == veh || car3[playerid] == veh)
{
SendClientMessage(playerid, GREY, "[VEHICLE] Your vehicle is unlocked.");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(i == playerid) continue;
SetVehicleParamsForPlayer(veh,i,0,0);
}
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, LIGHTRED, "You are not owning this vehicle.");*/
return 1;
} */
{
#pragma unused params
new veh = GetPlayerVehicleID(playerid);
if(car1[playerid] == veh || car2[playerid] == veh || car3[playerid] == veh)
{
SendClientMessage(playerid, GREY, "[VEHICLE] Your vehicle is locked.");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(i == playerid) continue;
SetVehicleParamsForPlayer(veh,i,0,1);
}
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, LIGHTRED, "You are not owning this vehicle.");*/
return 1;
}
dcmd_unlock(playerid, params[])
{
#pragma unused params
new veh = GetPlayerVehicleID(playerid);
if(car1[playerid] == veh || car2[playerid] == veh || car3[playerid] == veh)
{
SendClientMessage(playerid, GREY, "[VEHICLE] Your vehicle is unlocked.");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(i == playerid) continue;
SetVehicleParamsForPlayer(veh,i,0,0);
}
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, LIGHTRED, "You are not owning this vehicle.");*/
return 1;
} */