Jump to content

Hotdog car


Neculai

Recommended Posts

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 :)

Link to comment
Share on other sites

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

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.