ChopShop - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ChopShop (
/showthread.php?tid=516222)
ChopShop -
cedizon - 30.05.2014
Can someone Remake this script , because they can't sell players car to the ChopSHOp , it should be you can't sell your own Car , but you can sell other players car
pawn Код:
else if(CP[playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
foreach(Player, i)
{
new v = GetPlayerVehicle(i, vehicleid);
if(v != -1)
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, "~r~Vehicle denied", 5000, 1);
SendClientMessage(playerid, COLOR_WHITE, "You can't sell vehicles owned by players or families.");
return 1;
}
}