Salut samp.ro
Stiti ca in San Andreas gasim asa ceva :
Insa pe sa-mp sincer nu am intalnit asa ca am decis sa fac un mic fs
poze:
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