Hey Leute ich würde gern wissen wie das geht das nur bei mir in dem Fall am anfang ein dialog kommt und du auiswählen kannst ob du ein DMLER oda STuntler sein wilst aber ich will das nur DMler das Pickup aufheben können ! Code
if(dialogid==DIALOG_DS)
{
if(response==1)
{
DMLER[playerid] = 0;
new Text3D:DM = Create3DTextLabel("DM'ler!", 0xFF2800FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(DM, playerid, 0.0, 0.0, 0.7);
}
if(response==0)
{
STUNTLER[playerid] = 1;
new Text3D:Stunt = Create3DTextLabel("Stunt'ler!", BLAU, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Stunt, playerid, 0.0, 0.0, 0.7);
}
}
if(pickupid==Deagle)
{
if(DMLER[playerid] == 1)
SendClientMessage(playerid,BLAU,"Deagle erhalten.");
GivePlayerWeapon(playerid,24,9999);
}
Und bei meinem /frezze befehl
ocmd:frezze(playerid,params[])
{
new pID,string[128],string2[128];
if(IsPlayerAdmin(playerid))
if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Benutzung: /frezze [ID]");
TogglePlayerControllable(pID,0);
format(string,sizeof(string),"Du hast %s gefrezzt.",SpielerName(pID));
SendClientMessage(playerid,BLAU,string);
format(string2,sizeof(string),"Du wurdest von %s gefrezzt.",SpielerName(playerid));
SendClientMessage(playerid,BLAU,string2);
return 1;
}
ocmd:unfrezze(playerid,params[])
{
new pID,string[128],string2[128];
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Benutzung: /unfrezze [ID]");
TogglePlayerControllable(pID,1);
format(string,sizeof(string),"Du hast %s gefrezzt.",SpielerName(pID));
SendClientMessage(playerid,BLAU,string);
format(string2,sizeof(string),"Du wurdest von %s gefrezzt.",SpielerName(playerid));
SendClientMessage(playerid,BLAU,string2);
return 1;
}
und wie gebe ich jetz diesen autos Nitro?
kn[1]=AddStaticVehicle(593,2007.09960938,-2431.39941406,14.10000038,109.99511719,-1,8); //Dodo
kn[2]=AddStaticVehicle(593,2007.90002441,-2456.60009766,14.10000038,52.00000000,-1,-1); //Dodo
kn[3]=AddStaticVehicle(519,1990.80004883,-2443.39990234,14.60000038,90.00000000,-1,-1); //Shamal
kn[4]=AddStaticVehicle(411,1871.00000000,-2460.89990234,13.39999962,0.00000000,-1,-1); //Infernus
kn[5]=AddStaticVehicle(411,1867.40002441,-2460.69995117,13.39999962,0.00000000,-1,-1); //Infernus
kn[6]=AddStaticVehicle(411,1863.30004883,-2459.80004883,13.39999962,0.00000000,-1,-1); //Infernus
kn[7]=AddStaticVehicle(411,1858.59997559,-2459.69995117,13.39999962,0.00000000,-1,-1); //Infernus
kn[8]=AddStaticVehicle(411,1854.90002441,-2450.00000000,13.39999962,182.00000000,-1,-1); //Infernus
kn[9]=AddStaticVehicle(411,1858.30004883,-2450.30004883,13.39999962,180.00000000,-1,-1); //Infernus
kn[10]=AddStaticVehicle(411,1863.30004883,-2451.19995117,13.39999962,178.00000000,-1,-1); //Infernus
kn[11]=AddStaticVehicle(411,1871.50000000,-2451.50000000,13.39999962,177.99499512,-1,-1); //Infernus
kn[12]=AddStaticVehicle(451,1872.69995117,-2425.60009766,13.30000019,0.00000000,-1,-1); //Turismo
kn[13]=AddStaticVehicle(451,1869.09997559,-2424.60009766,13.30000019,0.00000000,-1,-1); //Turismo
kn[14]=AddStaticVehicle(451,1865.09997559,-2424.19995117,13.30000019,0.00000000,-1,-1); //Turismo
kn[15]=AddStaticVehicle(451,1861.09997559,-2423.39990234,13.30000019,0.00000000,-1,-1); //Turismo
kn[16]=AddStaticVehicle(451,1857.30004883,-2422.69995117,13.30000019,0.00000000,-1,-1); //Turismo
kn[17]=AddStaticVehicle(451,1871.59997559,-2414.80004883,13.30000019,0.00000000,-1,-1); //Turismo
kn[18]=AddStaticVehicle(451,1867.19995117,-2415.30004883,13.30000019,0.00000000,-1,-1); //Turismo
kn[19]=AddStaticVehicle(451,1862.90002441,-2414.69995117,13.30000019,0.00000000,-1,-1); //Turismo
kn[20]=AddStaticVehicle(451,1856.69995117,-2413.89990234,13.30000019,0.00000000,-1,-1); //Turismo
kn[21]=AddStaticVehicle(468,1491.59997559,-2467.80004883,13.30000019,0.00000000,-1,-1); //Sanchez
kn[22]=AddStaticVehicle(468,1489.09997559,-2467.69995117,13.30000019,0.00000000,-1,-1); //Sanchez
kn[23]=AddStaticVehicle(468,1486.80004883,-2467.30004883,13.30000019,0.00000000,-1,-1); //Sanchez
kn[24]=AddStaticVehicle(468,1484.59997559,-2466.89990234,13.30000019,0.00000000,-1,-1); //Sanchez
kn[25]=AddStaticVehicle(522,1479.80004883,-2515.00000000,13.19999981,0.00000000,-1,-1); //NRG-500
kn[26]=AddStaticVehicle(522,1481.69995117,-2515.19995117,13.19999981,0.00000000,-1,-1); //NRG-500
kn[27]=AddStaticVehicle(522,1483.80004883,-2515.19995117,13.19999981,0.00000000,-1,-1); //NRG-500
kn[28]=AddStaticVehicle(522,1485.90002441,-2515.10009766,13.19999981,0.00000000,-1,-1); //NRG-500
kn[29]=AddStaticVehicle(522,1852.40002441,-2471.80004883,13.19999981,0.00000000,-1,-1); //NRG-500
kn[30]=AddStaticVehicle(522,1854.80004883,-2471.60009766,13.19999981,0.00000000,-1,-1); //NRG-500
kn[31]=AddStaticVehicle(522,1857.50000000,-2471.60009766,13.19999981,0.00000000,-1,-1); //NRG-500
kn[32]=AddStaticVehicle(522,1859.59997559,-2471.60009766,13.19999981,0.00000000,-1,-1); //NRG-500