Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ########## ########## ######### ########## ##########
- ### ### ########## ########## ### ### #### ####
- ### ### ### ### ### ### ### ### ###
- ########## ########## ### ## ########## ### ###
- ### ########## ### ## ###### ### ###
- ### ### ### ### ### ### ### ###
- ### ########## ########## ### ### #### ####
- ### ########## ######### ### ### ########## - Não Retire Os Creditos !
- - Copie os Codigos e Adicione ao Teu GM !
- */
- // ====================== [ TOPO DO GM ] ==============================
- #include <a_samp>
- enum Mina
- {
- Float:minax,
- Float:minay,
- Float:minaz,
- };
- new MinaInfo[MInfo];
- new ColocouMina;
- new mina;
- // ====================== [ Public OnPlayerCommandText ] ==============================
- if (strcmp("/minaterrestre", cmdtext, true, 10) == 0)
- {
- if(ColocouMina == 1) return SendClientMessage(playerid, -1, "<!> Já Foi Colocada uma Mina Terrestre !");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x,y,z);
- MinaInfo[minax] = x;
- MinaInfo[minay] = y;
- MinaInfo[minaz] = z;
- ColocouMina = 1;
- mina = CreateObject(363,x,y,z-0.4,0,0,0,350);
- SendClientMessage(playerid, -1, "<!> Você Plantou um Mina, Não Se Aproxime !");
- SetPlayerPos(playerid, x,y+8,z);
- return 1;
- }
- // ====================== [ Public OnPlayerUpdate ] ==============================
- if(IsPlayerInRangeOfPoint(playerid, 5.0, MinaInfo[minax],MinaInfo[minay],MinaInfo[minaz]))
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x,y,z);
- GameTextForPlayer(playerid, "<!> Mina Terrestre ! **BUUM**",1000, 1);
- ColocouMina = 0;
- DestroyObject(mina);
- CreateExplosion(x,y,z,12,10);
- MinaInfo[minax] = 0;
- MinaInfo[minay] = 0;
- MinaInfo[minaz] = 0;
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement