Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- // Felicity's cars
- #define FILTERSCRIPT
- #define COLOR_RED 0xAA3333AA
- #include <a_samp>
- new Awankz;
- public OnFilterScriptInit()
- {
- Awankz = AddStaticVehicle(562,-3496.0959,-880.0619,8.9915,80.8354,71,63);
- ChangeVehiclePaintjob(Awankz,0);
- AddVehicleComponent(Awankz, 1036);
- AddVehicleComponent(Awankz, 1040);
- AddVehicleComponent(Awankz, 1034);
- AddVehicleComponent(Awankz, 1172);
- AddVehicleComponent(Awankz, 1149);
- AddVehicleComponent(Awankz, 1035);
- AddVehicleComponent(Awankz, 1146);
- AddVehicleComponent(Awankz, 1079);
- SetVehicleNumberPlate(Awankz, "Awankz");
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- if(newstate == PLAYER_STATE_DRIVER) {
- new Vehicle = GetPlayerVehicleID(playerid);
- if(Vehicle == Awankz) {
- if(strcmp(PlayerName,"Awankz[MDZ]",true)) {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, 0xF3764BC8, ".: This Car Is Reserved For Awankz[MDZ] :.");
- }
- }
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- ChangeVehiclePaintjob(Awankz,0);
- AddVehicleComponent(Awankz, 1036);
- AddVehicleComponent(Awankz, 1040);
- AddVehicleComponent(Awankz, 1034);
- AddVehicleComponent(Awankz, 1172);
- AddVehicleComponent(Awankz, 1149);
- AddVehicleComponent(Awankz, 1035);
- AddVehicleComponent(Awankz, 1146);
- AddVehicleComponent(Awankz, 1079);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- //Command Start Here
- if (strcmp("/mycar", cmdtext, true, 10) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- if(!strcmp(Name, "Awankz[MDZ]", true)) //Check the Player Name
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetVehiclePos(1, X, Y, Z); //1 = vehicleid. || X = Position X || Y = Position Y || Z = Position Z.
- PutPlayerInVehicle(playerid, 1, 0); //1 = vehicleid || 0 = State(0 = Driver)
- }
- }
- return 1;
- }
- //Command Finish Here
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement