12.07.2011, 04:26
hi guys how are you hoping fine from all of you.
i am new to samp forums and want you guys to help me make a callcar cmd
i want to have /callpriveh for my first vehicle and /callsecveh for my second car below is the script please help me out .
i am new to samp forums and want you guys to help me make a callcar cmd
i want to have /callpriveh for my first vehicle and /callsecveh for my second car below is the script please help me out .
Quote:
Originally Posted by shaikh007
#define FILTERSCRIPT
#define COLOR_RED 0xAA3333AA #include <a_samp> new Summair; new Summair1; public OnFilterScriptInit() { Summair = AddStaticVehicle(562,-1959.1219,288.1400,35.1337,89.6646,145,145); Summair1 = AddStaticVehicle(411,-1986.5643, 248.8863, 34.9182, 0, 0, 0); AddVehicleComponent(Summair, 1036); AddVehicleComponent(Summair, 1040); AddVehicleComponent(Summair, 1034); AddVehicleComponent(Summair, 1172); AddVehicleComponent(Summair, 1149); AddVehicleComponent(Summair, 1035); AddVehicleComponent(Summair, 1002); AddVehicleComponent(Summair, 1079); 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 == Summair) { if(strcmp(PlayerName,"Summair",true)) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xAA3333AA, "This car is reserved for: Summair"); } } if(Vehicle == Summair1) { if(strcmp(PlayerName,"Summair",true)) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xAA3333AA, "This car is reserved for: Summair"); } } } return 1; } public OnVehicleSpawn(vehicleid) { AddVehicleComponent(Summair, 1036); AddVehicleComponent(Summair, 1040); AddVehicleComponent(Summair, 1034); AddVehicleComponent(Summair, 1172); AddVehicleComponent(Summair, 1149); AddVehicleComponent(Summair, 1035); AddVehicleComponent(Summair, 1002); AddVehicleComponent(Summair, 1079); } |