Amigo creo que esto te puede servir:
https://sampwiki.blast.hk/wiki/Pickup_IDs Saludos. _______________ |
public OnPlayerEnterDynamicCP(playerid, checkpointid) //tambien el #include <streamer>
//y para crear el cp teines que usar esto
CreateDynamicCP(X, Y, Z,(tamaсo), (mundo virtual), (interior), -1, 25.0);// los 2 ultimos dejalo asi
No ,El cp es mas alargado es un pick up ese!
Saludos! _______________________ |
new ammu;
ammu = CreatePickup(1318, 23, -1568.7109,661.1258,7.1875, -1);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == ammu)
{
ShowPlayerDialog(playerid, 2341, DIALOG_STYLE_LIST, "Ammunation Menu", "Health {$1000}\nArmour {$1500}\n9mm {$2000}\nSilence 9mm {$2500}\nDesert Eagle {$3000}\nShotgun {$5000}\nSawn-Off Shotgun {$6000}\nCombat Shotgun {$6500}\nMicro SMG {$3000}\nMP5 {$4000}\nTec-9 {$5500}\nAK-47 {$4500}\nM4 {$6000}\nCountry Rifle {$6500}\nSniper Rifle {$7000}", "Buy", "Cancel");
return 1;
}
return 0;
}
new Ammu;
Ammu = CreateDynamicCP(-1568.7109,661.1258,7.1875,(tamaсo), (mundo virtual), (interior), -1, 25.0);//lo del tamaсo haslo tu ,mundo y interior porque no se que interior es ni que mundo le queres dar. Si en el tamaсo lo queres como el de la foto ponele 1.5 creo que era ese
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == Ammu)
{
ShowPlayerDialog(playerid, 2341, DIALOG_STYLE_LIST, "Ammunation Menu", "Health {$1000}\nArmour {$1500}\n9mm {$2000}\nSilence 9mm {$2500}\nDesert Eagle {$3000}\nShotgun {$5000}\nSawn-Off Shotgun {$6000}\nCombat Shotgun {$6500}\nMicro SMG {$3000}\nMP5 {$4000}\nTec-9 {$5500}\nAK-47 {$4500}\nM4 {$6000}\nCountry Rifle {$6500}\nSniper Rifle {$7000}", "Buy", "Cancel");
return 1;
}
return 1;
}
1317 - Checkpoint (textures missing)
y creo que el 1318 tambien