Respawn Car & Spawner
#1

ITALIANO : Ciao a tutti mi chiamo karim,vorrei chiedervi se per caso avete uno script ,
Per Respawn tutte le auto e un altro per crearle per un server roleplay esempio :
/creav ID Cost Color1 Color2 Grazie

__________________________________________________ _______________________
ENGLISH : Hello everyone my name is karim, I would ask if you happen to have a script,
To Respawn all the cars and another to create them for a roleplay server instance:
/ creav ID Cost Color1 Color2 Thank you sorry for the grammar are Italian
Reply
#2

pawn Код:
CMD:car(playerid, params[])
{
        if(pInfo[playerid][Adminlevel] < 4) return SCM(playerid, COLOR_RED, "You need to be Admin!");
        new
            col[2],vehicle;
        if(sscanf(params, "iii",vehicle,col[0],col[1])) return SCM(playerid, COLOR_RED, "Usage: /car [Car ID] [Color 1] [Color 2]");
        if(vehicle == 461 || vehicle == 463 || vehicle == 468 || vehicle == 521 || vehicle == 522 || vehicle == 417
        || vehicle == 425 || vehicle == 447 || vehicle == 487 || vehicle == 488 || vehicle == 497 || vehicle == 522|| vehicle == 548 || vehicle == 563
        || vehicle == 430 || vehicle == 446 || vehicle == 452 || vehicle == 453|| vehicle == 454 || vehicle == 472 || vehicle == 473 || vehicle == 484 || vehicle == 493 || vehicle == 595) return SCM(playerid, COLOR_RED, "Just cars please!");
        Cars(playerid, vehicle,col[0],col[1]);
        return 1;
}
pawn Код:
CMD:rac(playerid, params[])
{
        if(pInfo[playerid][Adminlevel] < 2) return SCM(playerid, Red, "You're not authorized to use this command");
        new
            string[128];
        for(new car = 0; car<MAX_CARS;car++) {
        VehicleHaveDriver(car);
        SetVehicleToRespawn(car); }
        format(string,sizeof(string),"Admin %s has respawned all cars",GN(playerid));
        SCMToAll(-1,string);
        return 1;
}
EDIT:if you found any problem tell me
Reply
#3

CREATE VEHICE ERROR :
C:\Users\aziz\Desktop\creaauto.pwn(13) : warning 203: symbol is never used: "car"
C:\Users\aziz\Desktop\creaauto.pwn(13) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
__________________________________________________ _______________________________

RESPAWN CAR :

C:\Users\aziz\Desktop\respawnauto.pwn(4) : warning 203: symbol is never used: "rac"
C:\Users\aziz\Desktop\respawnauto.pwn(4 -- 16) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

pawn Код:
stock Cars(playerid, model, color1, color2)
{
new Float:Pos[4];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]); GetPlayerFacingAngle(playerid, Pos[3]);
if(GetPVarInt(playerid,"VipCar") != -1) DestroyVehicle(GetPVarInt(playerid,"VipCar"));
new vehicleid = CreateVehicle(model,Pos[0],Pos[1],Pos[2], Pos[3],color1, color2, 3600);
SetPVarInt(playerid,"VipCar", vehicleid);
SCM(playerid,-1,"Vehicle spawned!");
}
pawn Код:
#define MAX_CARS  1000//ur cars
Reply
#5

This code is fot Respawn o Car Spawner ?
Reply
#6

this is a stock for car spawner
Reply
#7

Quote:
Originally Posted by SHE790
Посмотреть сообщение
this is a stock for car spawner
Giving a code here is worst thing to do, You won't learn him, You will just help him for once.

@Karim, Use this
[Tutorial]
Reply
#8

Clad ok Thank's I Test
Reply
#9

Clad not is for Roleplay this guide


PS: Spawn car have error :

C:\Users\karim\Desktop\creaauto.pwn(3) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#10

I tough you are using for Stunt server, So if you're are using for RolePlay server, Use this one.
Click
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)