Skripta koju koristim: UC
Detaljan opis problema: Pa /makeleader 0 2 i sad sam lider VDMafie i nmg da udjem u svoje vozilo??
Dio skripte:
new VDMVozilo[22];
VDMVozilo[0] = AddStaticVehicleEx(560,-2494.5000000,-602.7000100,132.3999900,180.0000000,11,46,15); //Sultan
VDMVozilo[1] = AddStaticVehicleEx(560,-2498.2000000,-602.5999800,132.3999900,180.0000000,11,46,15); //Sultan
VDMVozilo[1] = AddStaticVehicleEx(580,-2505.8000000,-602.5000000,132.5000000,180.0000000,11,115,15); //Stafford
VDMVozilo[2] = AddStaticVehicleEx(470,-2531.1001000,-620.2999900,132.7000000,270.0000000,11,10,15); //Patriot
VDMVozilo[3] = AddStaticVehicleEx(470,-2495.5000000,-620.2999900,132.7000000,270.0000000,11,10,15); //Patriot
VDMVozilo[4] = AddStaticVehicleEx(541,-2535.5000000,-603.0999800,132.3000000,180.0000000,11,79,15); //Bullet
VDMVozilo[5] = AddStaticVehicleEx(562,-2531.8000000,-603.0999800,132.3000000,180.0000000,11,52,15); //Elegy
VDMVozilo[6] = AddStaticVehicleEx(562,-2528.0000000,-603.0999800,132.3000000,180.0000000,11,106,15); //Elegy
VDMVozilo[7] = AddStaticVehicleEx(451,-2524.3000000,-602.7999900,132.3000000,180.0000000,11,32,15); //Turismo
VDMVozilo[8] = AddStaticVehicleEx(451,-2520.6001000,-602.9000200,132.3000000,180.0000000,11,68,15); //Turismo
VDMVozilo[9] = AddStaticVehicleEx(429,-2517.0000000,-603.0000000,132.3000000,180.0000000,11,89,15); //Banshee
VDMVozilo[10] = AddStaticVehicleEx(480,-2513.1001000,-603.0000000,132.3999900,180.0000000,11,152,15); //Comet
VDMVozilo[11] = AddStaticVehicleEx(580,-2509.5000000,-602.5000000,132.5000000,180.0000000,11,34,15); //Stafford
VDMVozilo[12] = AddStaticVehicleEx(560,-2502.0000000,-602.5999800,132.3999900,180.0000000,11,98,15); //Sultan
VDMVozilo[13] = AddStaticVehicleEx(409,-2510.0000000,-620.2000100,132.5000000,270.0000000,11,245,15); //Stretch
VDMVozilo[14] = AddStaticVehicleEx(487,-2529.3000000,-635.5000000,148.2000000,272.0000000,11,47,15); //Maverick
VDMVozilo[15] = AddStaticVehicleEx(487,-2530.1001000,-654.7999900,148.2000000,270.0000000,11,169,15); //Maverick
VDMVozilo[16] = AddStaticVehicleEx(487,-2529.8000000,-675.5999800,148.2000000,270.0000000,11,4,15); //Maverick
//
stock VDMVozila(carid) // Ime nase druge vozila
{
for(new i = 0; i < sizeof(VDMVozilo); i++)
{
if(carid == VDMVozilo[i]) return 1;
}
return 0;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new newcar = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(VDMVozila(newcar))
{
if(!IgracVDM(playerid))
{
new Float:x, Float:y, Float:z;
GameTextForPlayer(playerid, "~w~Zakljucano~n~~g~Niste VDM!!!", 4000, 5);
GetPlayerPos(playerid, x, y, z);
PostaviPoz(playerid, x-2, y, z+1);
SCM(playerid,red,"{B5B5B5}[!{FF0000}BTDM{B5B5B5}]{FFFFFF} Niste clan Vittime Della Mafie!!!");
}
}
if(VDMVozila(newcar))
{
if(!IgracYM(playerid))
{
new Float:x, Float:y, Float:z;
GameTextForPlayer(playerid, "~w~Zakljucano~n~~g~Niste VDM!!!", 4000, 5);
GetPlayerPos(playerid, x, y, z);
PostaviPoz(playerid, x-2, y, z+1);
SCM(playerid,red,"{B5B5B5}[!{FF0000}BTDM{B5B5B5}]{FFFFFF} Niste clan Vittime Della Mafie!!!");
}
}
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Vidi jel u stocku/publicu IgracVDM dobro podeseno.
I ja sam mislio da je do toga,jeste fino je to podeseno
stock IgracVDM(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][Lider];
new clan = PlayerInfo[playerid][Clan];
if(clan == 2)
{
return 1;
}
else if(leader == 2)
{
return 1;
}
}
return 0;
}
Evo ti opet vidi
Takodje i ovo
if(!IgracYM(playerid))
Sto tu radi ?
Cek da vidim ocel raditi
Radi moze lock,i hvala!