SA-MP Forums Archive
[FilterScript] GoldRims FilterScript - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] GoldRims FilterScript (/showthread.php?tid=425081)



GoldRims FilterScript - sampplayer12 - 24.03.2013

Instead of going to payn spray and stuff like that i decided to make it easier.

Код:
CMD:goldrims(playerid, params[])
{
    if(IsPlayerConnected(playerid)) {
        if(PlayerInfo[playerid][pAdmin] < 1) {
            SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
            return 1;
        }
        if(IsPlayerInAnyVehicle(playerid)) {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
            SendClientMessageEx(playerid, COLOR_GREY, "   Gold Rims Added to Vehicle!");
        }
    }
    return 1;
}



AW: GoldRims FilterScript - Pablo Borsellino - 24.03.2013

Not everyone have the Enumerator PlayerInfo in his Script dude..


Re: GoldRims FilterScript - Lady-Happy - 25.03.2013

Thats just copyed from a script. He didn't even edit it to be compatible with anything.


Re: GoldRims FilterScript - Scott Zulkifli - 25.03.2013

pawn Код:
CMD:goldrims(playerid, params[])
{
        if(IsPlayerInAnyVehicle(playerid)) {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
            SendClientMessageEx(playerid, 0xAFAFAFFF, "   Gold Rims Added to Vehicle!");
        }
    }
    return 1;
}