[FilterScript] Private car
#1

Hi!

I wrote a script in a private vehicle boredom! Number of Rows: 21, Preparation time: about it. 1 minute, how is this: The vehicle chosen to work only with the designated player.

pawn Код:
#include <a_samp>
new pcar;

#define cordinate x,y,z,a
#define color1 colorid
#define color2 colorid

public OnFilterScriptInit()
{
        pcar = AddStaticVehicle(411, coordinate, color1, color2);
        return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
        if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == privi)
        {
                new name[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                if(strcmp(name, "citromhun", false))
                {
                        RemovePlayerFromVehicle(playerid);
                        SendClientMessage(playerid, 0x281aeb, "This is not your vehicle to it: citrumhun vehicles");
                }
        }
        return 1;
}
Reply
#2

Nice
Reply
#3

Good
Reply
#4

Simpel but Nice :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)