04.07.2013, 18:10
Hello all im making NOS and repair pickups, but i need help.
pawn Код:
new repairpickup, nospickup;
new repairpickup1, nospickup1;
new repairpickup2, nospickup2;
new repairpickup3, nospickup3;
new repairpickup4, nospickup4;
new repairpickup5, nospickup5;
new repairpickup6, nospickup6;
new repairpickup7, nospickup7;
new repairpickup8, nospickup8;
new repairpickup9, nospickup9;
new repairpickup10, nospickup10;
new repairpickup11, nospickup11;
new repairpickup12, nospickup12;
nospickup = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup1 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup2 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup3 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup4 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup5 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup6 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup7 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup8 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup9 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup10 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup11 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
nospickup12 = CreatePickup(1009,14,X,Y,Z,-1);//NOS
but:
if(pickupid == nospickup)//<-- can i add multipickups, when player pickup pickup, like add 1-12
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
DestroyPickup(nospickup);
SetTimer("respawnnos",500,false);
switch(GetVehicleModel( GetPlayerVehicleID(playerid) ))
{
case 449,448,461,462,463,468,471,509,510,521,522,523,581,586,481,450,441,464,465,501,564,594,611,610,608,607,606,595,592,593,591,590,584,577,570,569,563,554,548,538,537,520,519,513,512,511,497,493,488,487,484,476,473,472,496,460,452,447,446,435,432,430,417,409,407:
return SendClientMessage(playerid,0xFF0000AA,"You can not add nos to this vehicle!");
}
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
}
}
}