Jump to content

Drug Shop


zaster

Recommended Posts

Salut

Am Creat Si eu Un

FileScript Cu un MAgazin de Droguri

LOCATION: GROV!

COMMANDS:

/enter

/exit

/kanabis

/marijuana

/joint

Credits: Zaster

POZE:

28lximw.png

[img width=500 height=375] atkygp.png

[img width=500 height=375] 2r4kgic.png

[img width=500 height=375] comk6.png

DOWNLOAD:

//DRUG SHOp BY ZASTER
//FUMATUL
//POATE
//UCIDE
//=)

#include <a_samp>
#include <zcmd>
#include <sscanf>




public OnGameModeInit() {
    AddStaticPickup(1318, 1, 2475.4141,-1750.6168,13.5469);//Intrare
	AddStaticPickup(1254, 1, 510.8924,-73.0858,998.7578);//Marijuana
	AddStaticPickup(1254, 1, 511.2997,-74.7012,998.7578);//Kanabis
	AddStaticPickup(1254, 1, 511.5041,-76.2415,998.7578);//JOINT
	AddStaticPickup(1318, 1, 502.3821,-69.6744,998.7578);//iesire
    Create3DTextLabel("{ffffff}Scrie {ff0000}/enter {ffffff}Pentru a Intra In Magazinu De Droguri",0x008080FF,2475.4141,-1750.6168,13.5469,40.0,0);
    Create3DTextLabel("{ffffff}Scrie {ff0000}/marijuana {ffffff}Ca-sa fumezi O Marijuana",0x008080FF,510.8924,-73.0858,998.7578,40.0,0);
    Create3DTextLabel("{ffffff}Scrie {ff0000}/kanabis {ffffff}Ca-sa Fumezi un Kanabis",0x008080FF,511.2997,-74.7012,998.7578,40.0,0);
    Create3DTextLabel("{ffffff}Scrie {ff0000}/joint {ffffff}Ca-sa Fumezi Un Joint",0x008080FF,511.5041,-76.2415,998.7578,40.0,0);
    Create3DTextLabel("{ffffff}Scrie {ff0000}/exit {ffffff}Pentru a Iesi Din Magazin",0x008080FF,502.3821,-69.6744,998.7578,40.0,0);
    return 1;
}

public OnPlayerSpawn(playerid) {
    
    return 1;
}

COMMAND:enter(playerid, params[])
{
  if(IsPlayerConnected(playerid))
 	{
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 2475.4141,-1750.6168,13.5469))//Aici Treabuie sa Pui Coordonatele de la Pickup alt fel nu poti folosi comanda 
		{
		SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Ai Intrat In Magazin-ul De Droguri");
		SetPlayerPos(playerid,501.980987,-69.150199,998.757812);
		SetPlayerInterior(playerid,11);
		return 1;
		}
		else return SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Nu Esti In sageata de la magazin");
  	}
    else return SendClientMessage(playerid, 0x0259EAAA, "{FF0000}ERROR: {FFF000}Nu Esti In sageata de la magazin");
}

COMMAND:marijuana(playerid, params[])
{
  if(IsPlayerConnected(playerid))
 	{
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 510.8924,-73.0858,998.7578))
		{
		SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Esti Nebun Fumezi Marijuana ");
		SetPlayerSpecialAction(playerid,21);
		return 1;
		}
		else return SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Trebuie Sa Fi In CheckPoint Pentru a Cumpara O Marijuana");
  	}
    else return SendClientMessage(playerid, 0x0259EAAA, "{FF0000}ERROR: {FFF000}Nu Esti In Checkpoint!");
}

COMMAND:kanabis(playerid, params[])
{
  if(IsPlayerConnected(playerid))
 	{
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 511.2997,-74.7012,998.7578))
		{
		SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Esti Nebun Fumezi Kanabis");
		SetPlayerSpecialAction(playerid,21);
		return 1;
		}
		else return SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Trebuie Sa Fi In CheckPoint Pentru a Cumpara O Kanabis");
  	}
    else return SendClientMessage(playerid, 0x0259EAAA, "{FF0000}ERROR: {FFF000}Nu Esti In Checkpoint!");
}

COMMAND:joint(playerid, params[])
{
  if(IsPlayerConnected(playerid))
 	{
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 511.5041,-76.2415,998.7578))
		{
		SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Esti Nebun Fumezi Joint ");
		SetPlayerSpecialAction(playerid,21);
		return 1;
		}
		else return SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Trebuie Sa Fi In CheckPoint Pentru a Cumpara O Joint");
  	}
    else return SendClientMessage(playerid, 0x0259EAAA, "{FF0000}ERROR: {FFF000}Nu Esti In Checkpoint!");
}

COMMAND:exit(playerid, params[])
{
  if(IsPlayerConnected(playerid))
 	{
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 502.3821,-69.6744,998.7578))
		{
		SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Ai Iesit Afara Din Magazinu De Droguri ");
		SetPlayerPos(playerid,2475.4141,-1750.6168,13.5469);
		SetPlayerInterior(playerid,0);
		return 1;
		}
		else return SendClientMessage(playerid, 0x0259EAAA, "{FFF000}Trebuie Sa Fi In CheckPoint Pentru a Iesi Din Sageata");
  	}
    else return SendClientMessage(playerid, 0x0259EAAA, "{FF0000}ERROR: {FFF000}Nu Esti In Checkpoint!");
}

THE END!

560x95_FFFFFF_FF9900_000000_000000.png
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.