Jump to content

Recommended Posts

Posted

Salut samp.ro

 

Stiti ca in San Andreas gasim asa ceva :

mGMv1Fh.jpg

 

Insa pe sa-mp sincer nu am intalnit asa ca am decis sa fac un mic fs 

 

poze:

lnyOG6p.png

 

9GJc4Ux.png

new Float:Hx;
new Float:Hy;
new Float:Hz;
#define SHOP  3

CMD:hot(playerid,params[])
{
  if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 588)
        {
	    new Float:Velocity[3];
	    GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
        if(Velocity[0] == 0 && Velocity[1] ==0 && Velocity[2] == 0)
		 {
			new Float:x, Float:y, Float:z;
 	 		GetPlayerPos(playerid, x, y, z);
			Hx=x-1.1825; Hy=y-2.8164; Hz=z;
			SetPlayerCheckpoint(playerid, Hx,Hy,Hz, 3.0);
			SetPlayerSkin(playerid, 209);
		 }
		else
		{
		SendClientMessage(playerid,-1,"Trebuie sa stationezi pentru a folosi comanda");
		}
		 
   }
  return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{

	ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"{3333FF}Nea{66FF00}' {3333FF}Marcel {33CC00}FooD","{33FF66}Hot Dog-{D80000}2$n{33FF66}Pizza-{D80000}5$n{33FF66}Pepsi-{D80000}3$","BuY","Cancel");
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 3)
    {
        if(response) 
        {
            
            switch(listitem)
            {
                case 0:
				{
				GivePlayerMoney(playerid,-2);
				ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0,0,0,0,0,0,0);
				}
                case 1: {
				GivePlayerMoney(playerid,-5);
				ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0,0,0,0,0,0,0);
				}
                case 2:{
				 GivePlayerMoney(playerid,-3);
				 ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0,0,0,0,0,0,0);
				 }
            }
        }
        return 1; 
    }

    return 0; 
}

Nu e cine stie ce dar sper sa va placa :)

Posted

:)) Frumos, nu ma puteam gandi la asa ceva =)) LoL.

Imaginatie, asta nu o are orisicine, Bv, 10/10 xD

242086.png

  • 4 weeks later...
  • 3 weeks later...
  • 4 weeks later...
  • 1 year later...
  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.