[FilterScript] Vehicle Spawn /V Carname|Carid Color1 Color2
#21

Quote:
Originally Posted by Aloushi
Посмотреть сообщение
i think all scripter is copy paste
1.Learn English, then come back on forum.
2.No one is copying, ur only one.
3.Next time check if there's script like this.
and again, learn english. KID!
Reply
#22

Usefull for me.Ty
Reply
#23

Hey, nice Car Spawner!
But I have a question.
Because I'm new on scripting and others, what do I have to do with the .pwn file?
Normally, I know that I need an .amx file too for running a Filescript.
What to do?
Reply
#24

u need to run my script in pawno tool
Reply
#25

Awesome bro 5/5!
Reply
#26

Simple but Rep+ for your work
Reply
#27

thanks You
Reply
#28

It say error (cant read from #include <streamer>)
Reply
#29

install last include and plugin streamer
Reply
#30

Basic but gj
Keep it up !
Reply
#31

Very useful
Reply
#32

Quote:
Originally Posted by Infinity90
Посмотреть сообщение
Very useful
thxx you
Reply
#33

Very nice and usefull

+rep!
Reply
#34

Very basic, but very useful too, should be posted in the useful snippets section
Reply
#35

usefull
Reply
#36

thanks all
Reply
#37

I don't know how to install it. I place the cs.pwn file on my filterscript and afterwards I don't know what to do. Should it generate an .amx file somehow?
Reply
#38

you just make this command:

Add this to the top of your script
PHP код:
new SpawnedVehicle[MAX_PLAYERS];

stock SpawnVehicleForPlayer(playerid,vehicleid,color1,color2)
{
    if(
SpawnedVehicle[playerid] != 0)
    {
        
DestroyVehicle(SpawnedVehicle[playerid]);
    }
    new 
Float:XFloat:YFloat:ZFloat:Angle;
    
GetPlayerPos(playeridFloat:XFloat:YFloat:Z);
    
GetPlayerFacingAngle(playeridFloat:Angle);
    
SpawnedVehicle[playerid] = CreateVehicle(vehicleidXY1.0Anglecolor1color2600);
    
SetVehicleVirtualWorld(SpawnedVehicle[playerid], GetPlayerVirtualWorld(playerid));
    
LinkVehicleToInterior(SpawnedVehicle[playerid], GetPlayerInterior(playerid));
    
PutPlayerInVehicle(playeridSpawnedVehicle[playerid], 0);

and add command:
PHP код:
CMD:car(playerid,params[])
{
    if(
sscanf(params,"iii",id,c1,c2)) return SendClientMessage(playerid,-1,"USAGE: /car [car id] [color 1] [color 2]");
    
SpawnVehicleForPlayer(playerid,id,c1,c2);
    return 
1;

If i help you please rep+
Reply
#39

Very good :P
Reply
#40

Hi guys,
I'am a noob and don't now where I must place that file?
In my plugin map?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)