/paint
#1

Hello! Is someone out there extremely bored that wants to script a little? I need a small simple script!

U do /paint and then ur car will change color, just some random color! Must be random!
Is this possible? If scripter wants, he can add his name in the script and I will keep it there!
Reply
#2

pawn Код:
CMD:paint(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 0;

    return ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255));
}
Reply
#3

Oh thank you! And where shall I put it in pawno? Under what line?
Reply
#4

http://myndahysing.net/upload/261303001884.png
Reply
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/paint", true) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFF, "You must be in a vehicle!");

        return ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255));
    }
    return 0;
}
Add that or replace it if you already have "OnPlayerCommandText"
Also delete the previous command.
Reply
#6

alright, u sure u dont want me to add credits for u?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)