All Can Spwan Vehicles Help Me
#1

Hello Guys
i Have Smail Problems
i made any Admins Can Spwan Vehicles from rank 1 to 8
Normal Player Can Spwan The Vehicles Why What is wrong
PHP код:
CMD:v(playeridparams[])
{
    new 
Vehicle[32], VehicleIDColorOneColorTwo;
    
PlayerInfov[playerid][pCanSpawnVehicle] = true;
    if(
sscanf(params"s[32]D(1)D(1)"VehicleColorOneColorTwo))
    if(
PlayerInfo[playerid][pRank] >= && PlayerInfo[playerid][pRank] < 9)
    {
        
PlayerInfov[playerid][pCanSpawnVehicle] = true;
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: /v[Vehiclename/Vehicleid] [Color 1 (optional)] [Color 2 (optional)]");
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: Like /v Turismo , /v Elegy /v Nrg /v 522");
        return 
1;
    }
    if(
PlayerInfov[playerid][pCanSpawnVehicle])
    {
        
VehicleID GetVehicleModelIDFromName(Vehicle);
        if(
VehicleID != 425 && VehicleID != 432 && VehicleID != 447 &&
           
VehicleID != 430 && VehicleID != 417 && VehicleID != 435 &&
           
VehicleID != 446 && VehicleID != 449 && VehicleID != 450 &&
           
VehicleID != 452 && VehicleID != 453 && VehicleID != 454 &&
             
VehicleID != 460 && VehicleID != 464 && VehicleID != 465 &&
             
VehicleID != 469 && VehicleID != 472 && VehicleID != 473 &&
           
VehicleID != 476 && VehicleID != 484 && VehicleID != 487 &&
           
VehicleID != 488 && VehicleID != 493 && VehicleID != 497 &&
           
VehicleID != 501 && VehicleID != 511 && VehicleID != 512 &&
           
VehicleID != 513 && VehicleID != 519 && VehicleID != 520 &&
           
VehicleID != 537 && VehicleID != 538 && VehicleID != 548 &&
           
VehicleID != 553 && VehicleID != 563 && VehicleID != 564 &&
           
VehicleID != 569 && VehicleID != 570 && VehicleID != 577 &&
           
VehicleID != 584 && VehicleID != 590 && VehicleID != 591 &&
           
VehicleID != 592 && VehicleID != 593 && VehicleID != 594 &&
           
VehicleID != 595 && VehicleID != 606 && VehicleID != 607 &&
           
VehicleID != 608 && VehicleID != 610 && VehicleID != 611) {
            if(
VehicleID == -)
            {
                
VehicleID strval(Vehicle);
                if(
VehicleID 400 || VehicleID 611 )
                {
                    return 
SendClientMessage(playeridCOLOR_RED"You entered an invalid vehiclename!");
                }
            }
            
GetPlayerPos(playeridpXpYpZ);
            
GetPlayerFacingAngle(playeridpAngle);
            
DestroyVehicle(PlayerInfov[playerid][pSpawnVehicle]);
            
PlayerInfov[playerid][pSpawnVehicle] = CreateVehicle(VehicleIDpXpYpZ+2.0pAngleColorOneColorTwo, -1);
            
LinkVehicleToInterior(PlayerInfov[playerid][pSpawnVehicle], GetPlayerInterior(playerid));
            
PutPlayerInVehicle(playeridPlayerInfov[playerid][pSpawnVehicle], 0);
            
SendClientMessage(playeridCOLOR_RED"You succesfully spawned this vehicle!");
        } else {
            
SendClientMessage(playeridCOLOR_RED"You are not allowed to spawn this vehicle!!");
        }
    } else {
        
SendClientMessage(playeridCOLOR_RED"You can not spawn vehicles in this zone!");
    }
    return 
1;

Reply
#2

Try this

PHP код:
CMD:v(playeridparams[]) 

    new 
Vehicle[32], VehicleIDColorOneColorTwo
    
PlayerInfov[playerid][pCanSpawnVehicle] = true
    if(
PlayerInfo[playerid][pRank] >= 1) return SendClientMessage(playeridCOLOR_RED"You are not admin to use this command");
    if(
sscanf(params"s[32]D(1)D(1)"VehicleColorOneColorTwo)) 
    { 
        
PlayerInfov[playerid][pCanSpawnVehicle] = true
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: /v[Vehiclename/Vehicleid] [Color 1 (optional)] [Color 2 (optional)]"); 
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: Like /v Turismo , /v Elegy /v Nrg /v 522"); 
        return 
1
    } 
    if(
PlayerInfov[playerid][pCanSpawnVehicle]) 
    { 
        
VehicleID GetVehicleModelIDFromName(Vehicle); 
        if(
VehicleID != 425 && VehicleID != 432 && VehicleID != 447 && 
           
VehicleID != 430 && VehicleID != 417 && VehicleID != 435 && 
           
VehicleID != 446 && VehicleID != 449 && VehicleID != 450 && 
           
VehicleID != 452 && VehicleID != 453 && VehicleID != 454 && 
             
VehicleID != 460 && VehicleID != 464 && VehicleID != 465 && 
             
VehicleID != 469 && VehicleID != 472 && VehicleID != 473 && 
           
VehicleID != 476 && VehicleID != 484 && VehicleID != 487 && 
           
VehicleID != 488 && VehicleID != 493 && VehicleID != 497 && 
           
VehicleID != 501 && VehicleID != 511 && VehicleID != 512 && 
           
VehicleID != 513 && VehicleID != 519 && VehicleID != 520 && 
           
VehicleID != 537 && VehicleID != 538 && VehicleID != 548 && 
           
VehicleID != 553 && VehicleID != 563 && VehicleID != 564 && 
           
VehicleID != 569 && VehicleID != 570 && VehicleID != 577 && 
           
VehicleID != 584 && VehicleID != 590 && VehicleID != 591 && 
           
VehicleID != 592 && VehicleID != 593 && VehicleID != 594 && 
           
VehicleID != 595 && VehicleID != 606 && VehicleID != 607 && 
           
VehicleID != 608 && VehicleID != 610 && VehicleID != 611) { 
            if(
VehicleID == -
            { 
                
VehicleID strval(Vehicle); 
                if(
VehicleID 400 || VehicleID 611 
                { 
                    return 
SendClientMessage(playeridCOLOR_RED"You entered an invalid vehiclename!"); 
                } 
            } 
            
GetPlayerPos(playeridpXpYpZ); 
            
GetPlayerFacingAngle(playeridpAngle); 
            
DestroyVehicle(PlayerInfov[playerid][pSpawnVehicle]); 
            
PlayerInfov[playerid][pSpawnVehicle] = CreateVehicle(VehicleIDpXpYpZ+2.0pAngleColorOneColorTwo, -1); 
            
LinkVehicleToInterior(PlayerInfov[playerid][pSpawnVehicle], GetPlayerInterior(playerid)); 
            
PutPlayerInVehicle(playeridPlayerInfov[playerid][pSpawnVehicle], 0); 
            
SendClientMessage(playeridCOLOR_RED"You succesfully spawned this vehicle!"); 
        } else { 
            
SendClientMessage(playeridCOLOR_RED"You are not allowed to spawn this vehicle!!"); 
        } 
    } else { 
        
SendClientMessage(playeridCOLOR_RED"You can not spawn vehicles in this zone!"); 
    } 
    return 
1

Reply
#3

Replace with this !
PHP код:
CMD:v(playeridparams[])
{
    new 
Vehicle[32], VehicleIDColorOneColorTwo;
    if(
sscanf(params"s[32]D(1)D(1)"VehicleColorOneColorTwo))
    if(
PlayerInfo[playerid][pRank] >= && PlayerInfo[playerid][pRank] < 9)
    {
        
PlayerInfov[playerid][pCanSpawnVehicle] = true;
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: /v[Vehiclename/Vehicleid] [Color 1 (optional)] [Color 2 (optional)]");
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: Like /v Turismo , /v Elegy /v Nrg /v 522");
        return 
1;
    }
    if(
PlayerInfov[playerid][pCanSpawnVehicle])
    {
        
VehicleID GetVehicleModelIDFromName(Vehicle);
        if(
VehicleID != 425 && VehicleID != 432 && VehicleID != 447 &&
           
VehicleID != 430 && VehicleID != 417 && VehicleID != 435 &&
           
VehicleID != 446 && VehicleID != 449 && VehicleID != 450 &&
           
VehicleID != 452 && VehicleID != 453 && VehicleID != 454 &&
             
VehicleID != 460 && VehicleID != 464 && VehicleID != 465 &&
             
VehicleID != 469 && VehicleID != 472 && VehicleID != 473 &&
           
VehicleID != 476 && VehicleID != 484 && VehicleID != 487 &&
           
VehicleID != 488 && VehicleID != 493 && VehicleID != 497 &&
           
VehicleID != 501 && VehicleID != 511 && VehicleID != 512 &&
           
VehicleID != 513 && VehicleID != 519 && VehicleID != 520 &&
           
VehicleID != 537 && VehicleID != 538 && VehicleID != 548 &&
           
VehicleID != 553 && VehicleID != 563 && VehicleID != 564 &&
           
VehicleID != 569 && VehicleID != 570 && VehicleID != 577 &&
           
VehicleID != 584 && VehicleID != 590 && VehicleID != 591 &&
           
VehicleID != 592 && VehicleID != 593 && VehicleID != 594 &&
           
VehicleID != 595 && VehicleID != 606 && VehicleID != 607 &&
           
VehicleID != 608 && VehicleID != 610 && VehicleID != 611) {
            if(
VehicleID == -)
            {
                
VehicleID strval(Vehicle);
                if(
VehicleID 400 || VehicleID 611 )
                {
                    return 
SendClientMessage(playeridCOLOR_RED"You entered an invalid vehiclename!");
                }
            }
            
GetPlayerPos(playeridpXpYpZ);
            
GetPlayerFacingAngle(playeridpAngle);
            
DestroyVehicle(PlayerInfov[playerid][pSpawnVehicle]);
            
PlayerInfov[playerid][pSpawnVehicle] = CreateVehicle(VehicleIDpXpYpZ+2.0pAngleColorOneColorTwo, -1);
            
LinkVehicleToInterior(PlayerInfov[playerid][pSpawnVehicle], GetPlayerInterior(playerid));
            
PutPlayerInVehicle(playeridPlayerInfov[playerid][pSpawnVehicle], 0);
            
SendClientMessage(playeridCOLOR_RED"You succesfully spawned this vehicle!");
        } else {
            
SendClientMessage(playeridCOLOR_RED"You are not allowed to spawn this vehicle!!");
        }
    } else {
        
SendClientMessage(playeridCOLOR_RED"You can not spawn vehicles in this zone!");
    }
    return 
1;

You Make all Players Can Respawncars If Type this command because :
PHP код:
    new Vehicle[32], VehicleIDColorOneColorTwo
    
PlayerInfov[playerid][pCanSpawnVehicle] = true;//<<This Variable Make all People Type this command can respawn cars !! Remove this ! 
Reply
#4

Quote:
Originally Posted by TuFF12
Посмотреть сообщение
Try this

PHP код:
CMD:v(playeridparams[]) 

    new 
Vehicle[32], VehicleIDColorOneColorTwo
    
PlayerInfov[playerid][pCanSpawnVehicle] = true
    if(
PlayerInfo[playerid][pRank] >= 1) return SendClientMessage(playeridCOLOR_RED"You are not admin to use this command");
    if(
sscanf(params"s[32]D(1)D(1)"VehicleColorOneColorTwo)) 
    { 
        
PlayerInfov[playerid][pCanSpawnVehicle] = true
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: /v[Vehiclename/Vehicleid] [Color 1 (optional)] [Color 2 (optional)]"); 
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: Like /v Turismo , /v Elegy /v Nrg /v 522"); 
        return 
1
    } 
    if(
PlayerInfov[playerid][pCanSpawnVehicle]) 
    { 
        
VehicleID GetVehicleModelIDFromName(Vehicle); 
        if(
VehicleID != 425 && VehicleID != 432 && VehicleID != 447 && 
           
VehicleID != 430 && VehicleID != 417 && VehicleID != 435 && 
           
VehicleID != 446 && VehicleID != 449 && VehicleID != 450 && 
           
VehicleID != 452 && VehicleID != 453 && VehicleID != 454 && 
             
VehicleID != 460 && VehicleID != 464 && VehicleID != 465 && 
             
VehicleID != 469 && VehicleID != 472 && VehicleID != 473 && 
           
VehicleID != 476 && VehicleID != 484 && VehicleID != 487 && 
           
VehicleID != 488 && VehicleID != 493 && VehicleID != 497 && 
           
VehicleID != 501 && VehicleID != 511 && VehicleID != 512 && 
           
VehicleID != 513 && VehicleID != 519 && VehicleID != 520 && 
           
VehicleID != 537 && VehicleID != 538 && VehicleID != 548 && 
           
VehicleID != 553 && VehicleID != 563 && VehicleID != 564 && 
           
VehicleID != 569 && VehicleID != 570 && VehicleID != 577 && 
           
VehicleID != 584 && VehicleID != 590 && VehicleID != 591 && 
           
VehicleID != 592 && VehicleID != 593 && VehicleID != 594 && 
           
VehicleID != 595 && VehicleID != 606 && VehicleID != 607 && 
           
VehicleID != 608 && VehicleID != 610 && VehicleID != 611) { 
            if(
VehicleID == -
            { 
                
VehicleID strval(Vehicle); 
                if(
VehicleID 400 || VehicleID 611 
                { 
                    return 
SendClientMessage(playeridCOLOR_RED"You entered an invalid vehiclename!"); 
                } 
            } 
            
GetPlayerPos(playeridpXpYpZ); 
            
GetPlayerFacingAngle(playeridpAngle); 
            
DestroyVehicle(PlayerInfov[playerid][pSpawnVehicle]); 
            
PlayerInfov[playerid][pSpawnVehicle] = CreateVehicle(VehicleIDpXpYpZ+2.0pAngleColorOneColorTwo, -1); 
            
LinkVehicleToInterior(PlayerInfov[playerid][pSpawnVehicle], GetPlayerInterior(playerid)); 
            
PutPlayerInVehicle(playeridPlayerInfov[playerid][pSpawnVehicle], 0); 
            
SendClientMessage(playeridCOLOR_RED"You succesfully spawned this vehicle!"); 
        } else { 
            
SendClientMessage(playeridCOLOR_RED"You are not allowed to spawn this vehicle!!"); 
        } 
    } else { 
        
SendClientMessage(playeridCOLOR_RED"You can not spawn vehicles in this zone!"); 
    } 
    return 
1

this only for admin level 1 can use it > i made it from level 1 to level 9 can use this comments
Reply
#5

even other level admin can use this !

anyway does it works ?
Reply
#6

Quote:
Originally Posted by TuFF12
Посмотреть сообщение
even other level admin can use this !

anyway does it works ?
You Make All Admin Level 1 > 9 Can't Use this COmmand xD
You Must Change
PHP код:
if(PlayerInfo[playerid][pRank] < 1) return SendClientMessage(playerid,-1,"You Not High Level to use this command"); 
Reply
#7

Quote:
Originally Posted by Amunra
Посмотреть сообщение
Replace with this !
PHP код:
CMD:v(playeridparams[])
{
    new 
Vehicle[32], VehicleIDColorOneColorTwo;
    if(
sscanf(params"s[32]D(1)D(1)"VehicleColorOneColorTwo))
    if(
PlayerInfo[playerid][pRank] >= && PlayerInfo[playerid][pRank] < 9)
    {
        
PlayerInfov[playerid][pCanSpawnVehicle] = true;
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: /v[Vehiclename/Vehicleid] [Color 1 (optional)] [Color 2 (optional)]");
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: Like /v Turismo , /v Elegy /v Nrg /v 522");
        return 
1;
    }
    if(
PlayerInfov[playerid][pCanSpawnVehicle])
    {
        
VehicleID GetVehicleModelIDFromName(Vehicle);
        if(
VehicleID != 425 && VehicleID != 432 && VehicleID != 447 &&
           
VehicleID != 430 && VehicleID != 417 && VehicleID != 435 &&
           
VehicleID != 446 && VehicleID != 449 && VehicleID != 450 &&
           
VehicleID != 452 && VehicleID != 453 && VehicleID != 454 &&
             
VehicleID != 460 && VehicleID != 464 && VehicleID != 465 &&
             
VehicleID != 469 && VehicleID != 472 && VehicleID != 473 &&
           
VehicleID != 476 && VehicleID != 484 && VehicleID != 487 &&
           
VehicleID != 488 && VehicleID != 493 && VehicleID != 497 &&
           
VehicleID != 501 && VehicleID != 511 && VehicleID != 512 &&
           
VehicleID != 513 && VehicleID != 519 && VehicleID != 520 &&
           
VehicleID != 537 && VehicleID != 538 && VehicleID != 548 &&
           
VehicleID != 553 && VehicleID != 563 && VehicleID != 564 &&
           
VehicleID != 569 && VehicleID != 570 && VehicleID != 577 &&
           
VehicleID != 584 && VehicleID != 590 && VehicleID != 591 &&
           
VehicleID != 592 && VehicleID != 593 && VehicleID != 594 &&
           
VehicleID != 595 && VehicleID != 606 && VehicleID != 607 &&
           
VehicleID != 608 && VehicleID != 610 && VehicleID != 611) {
            if(
VehicleID == -)
            {
                
VehicleID strval(Vehicle);
                if(
VehicleID 400 || VehicleID 611 )
                {
                    return 
SendClientMessage(playeridCOLOR_RED"You entered an invalid vehiclename!");
                }
            }
            
GetPlayerPos(playeridpXpYpZ);
            
GetPlayerFacingAngle(playeridpAngle);
            
DestroyVehicle(PlayerInfov[playerid][pSpawnVehicle]);
            
PlayerInfov[playerid][pSpawnVehicle] = CreateVehicle(VehicleIDpXpYpZ+2.0pAngleColorOneColorTwo, -1);
            
LinkVehicleToInterior(PlayerInfov[playerid][pSpawnVehicle], GetPlayerInterior(playerid));
            
PutPlayerInVehicle(playeridPlayerInfov[playerid][pSpawnVehicle], 0);
            
SendClientMessage(playeridCOLOR_RED"You succesfully spawned this vehicle!");
        } else {
            
SendClientMessage(playeridCOLOR_RED"You are not allowed to spawn this vehicle!!");
        }
    } else {
        
SendClientMessage(playeridCOLOR_RED"You can not spawn vehicles in this zone!");
    }
    return 
1;

You Make all Players Can Respawncars If Type this command because :
PHP код:
    new Vehicle[32], VehicleIDColorOneColorTwo
    
PlayerInfov[playerid][pCanSpawnVehicle] = true;//<<This Variable Make all People Type this command can respawn cars !! Remove this ! 
this message for normal player < > and for admins too lol
PHP код:
You can not spawn vehicles in this zone 
admin cant spwan
Reply
#8

Quote:
Originally Posted by BlazeOfGlory
Посмотреть сообщение
this message for normal player < > and for admins too lol
PHP код:
You can not spawn vehicles in this zone 
admin cant spwan
Ohh sorry My Bad xD
PHP код:
CMD:v(playeridparams[])
{
    new 
Vehicle[32], VehicleIDColorOneColorTwo;
    if(
sscanf(params"s[32]D(1)D(1)"VehicleColorOneColorTwo))
    if(
PlayerInfo[playerid][pRank] >= && PlayerInfo[playerid][pRank] < 9)
    {
        
PlayerInfov[playerid][pCanSpawnVehicle] = true;
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: /v[Vehiclename/Vehicleid] [Color 1 (optional)] [Color 2 (optional)]");
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: Like /v Turismo , /v Elegy /v Nrg /v 522");
        return 
1;
    }
    if(
PlayerInfov[playerid][pCanSpawnVehicle])
    {
        
VehicleID GetVehicleModelIDFromName(Vehicle);
        if(
VehicleID != 425 && VehicleID != 432 && VehicleID != 447 &&
           
VehicleID != 430 && VehicleID != 417 && VehicleID != 435 &&
           
VehicleID != 446 && VehicleID != 449 && VehicleID != 450 &&
           
VehicleID != 452 && VehicleID != 453 && VehicleID != 454 &&
             
VehicleID != 460 && VehicleID != 464 && VehicleID != 465 &&
             
VehicleID != 469 && VehicleID != 472 && VehicleID != 473 &&
           
VehicleID != 476 && VehicleID != 484 && VehicleID != 487 &&
           
VehicleID != 488 && VehicleID != 493 && VehicleID != 497 &&
           
VehicleID != 501 && VehicleID != 511 && VehicleID != 512 &&
           
VehicleID != 513 && VehicleID != 519 && VehicleID != 520 &&
           
VehicleID != 537 && VehicleID != 538 && VehicleID != 548 &&
           
VehicleID != 553 && VehicleID != 563 && VehicleID != 564 &&
           
VehicleID != 569 && VehicleID != 570 && VehicleID != 577 &&
           
VehicleID != 584 && VehicleID != 590 && VehicleID != 591 &&
           
VehicleID != 592 && VehicleID != 593 && VehicleID != 594 &&
           
VehicleID != 595 && VehicleID != 606 && VehicleID != 607 &&
           
VehicleID != 608 && VehicleID != 610 && VehicleID != 611) {
            if(
VehicleID == -)
            {
                
VehicleID strval(Vehicle);
                if(
VehicleID 400 || VehicleID 611 )
                {
                    return 
SendClientMessage(playeridCOLOR_RED"You entered an invalid vehiclename!");
                }
            }
            
GetPlayerPos(playeridpXpYpZ);
            
GetPlayerFacingAngle(playeridpAngle);
            
DestroyVehicle(PlayerInfov[playerid][pSpawnVehicle]);
            
PlayerInfov[playerid][pSpawnVehicle] = CreateVehicle(VehicleIDpXpYpZ+2.0pAngleColorOneColorTwo, -1);
            
LinkVehicleToInterior(PlayerInfov[playerid][pSpawnVehicle], GetPlayerInterior(playerid));
            
PutPlayerInVehicle(playeridPlayerInfov[playerid][pSpawnVehicle], 0);
            
SendClientMessage(playeridCOLOR_RED"You succesfully spawned this vehicle!");
        }
    }
    return 
1;

Replace Again !
Reply
#9

Quote:
Originally Posted by Amunra
Посмотреть сообщение
Ohh sorry My Bad xD
PHP код:
CMD:v(playeridparams[])
{
    new 
Vehicle[32], VehicleIDColorOneColorTwo;
    if(
sscanf(params"s[32]D(1)D(1)"VehicleColorOneColorTwo))
    if(
PlayerInfo[playerid][pRank] >= && PlayerInfo[playerid][pRank] < 9)
    {
        
PlayerInfov[playerid][pCanSpawnVehicle] = true;
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: /v[Vehiclename/Vehicleid] [Color 1 (optional)] [Color 2 (optional)]");
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW"[USAGE]: Like /v Turismo , /v Elegy /v Nrg /v 522");
        return 
1;
    }
    if(
PlayerInfov[playerid][pCanSpawnVehicle])
    {
        
VehicleID GetVehicleModelIDFromName(Vehicle);
        if(
VehicleID != 425 && VehicleID != 432 && VehicleID != 447 &&
           
VehicleID != 430 && VehicleID != 417 && VehicleID != 435 &&
           
VehicleID != 446 && VehicleID != 449 && VehicleID != 450 &&
           
VehicleID != 452 && VehicleID != 453 && VehicleID != 454 &&
             
VehicleID != 460 && VehicleID != 464 && VehicleID != 465 &&
             
VehicleID != 469 && VehicleID != 472 && VehicleID != 473 &&
           
VehicleID != 476 && VehicleID != 484 && VehicleID != 487 &&
           
VehicleID != 488 && VehicleID != 493 && VehicleID != 497 &&
           
VehicleID != 501 && VehicleID != 511 && VehicleID != 512 &&
           
VehicleID != 513 && VehicleID != 519 && VehicleID != 520 &&
           
VehicleID != 537 && VehicleID != 538 && VehicleID != 548 &&
           
VehicleID != 553 && VehicleID != 563 && VehicleID != 564 &&
           
VehicleID != 569 && VehicleID != 570 && VehicleID != 577 &&
           
VehicleID != 584 && VehicleID != 590 && VehicleID != 591 &&
           
VehicleID != 592 && VehicleID != 593 && VehicleID != 594 &&
           
VehicleID != 595 && VehicleID != 606 && VehicleID != 607 &&
           
VehicleID != 608 && VehicleID != 610 && VehicleID != 611) {
            if(
VehicleID == -)
            {
                
VehicleID strval(Vehicle);
                if(
VehicleID 400 || VehicleID 611 )
                {
                    return 
SendClientMessage(playeridCOLOR_RED"You entered an invalid vehiclename!");
                }
            }
            
GetPlayerPos(playeridpXpYpZ);
            
GetPlayerFacingAngle(playeridpAngle);
            
DestroyVehicle(PlayerInfov[playerid][pSpawnVehicle]);
            
PlayerInfov[playerid][pSpawnVehicle] = CreateVehicle(VehicleIDpXpYpZ+2.0pAngleColorOneColorTwo, -1);
            
LinkVehicleToInterior(PlayerInfov[playerid][pSpawnVehicle], GetPlayerInterior(playerid));
            
PutPlayerInVehicle(playeridPlayerInfov[playerid][pSpawnVehicle], 0);
            
SendClientMessage(playeridCOLOR_RED"You succesfully spawned this vehicle!");
        }
    }
    return 
1;

Replace Again !
still not spwan
Reply
#10

Quote:
Originally Posted by BlazeOfGlory
Посмотреть сообщение
still not spwan
I Your Command is Wrong !
Your want All Vehicle to Back spawn ,Right ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)