how? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how? (
/showthread.php?tid=188187)
how? -
dark_clown - 06.11.2010
how can i make a person have a ciggy in his hand?
and whine?
Re: how? -
XxerykxX - 06.11.2010
Код:
if (strcmp(cmdtext, "/ciggy", true)==0){
SendClientMessage(playerid, 0x33AA33AA, "Now you can go smoke");
ApplyAnimation(playerid,"JST_BUISNESS","smoke_01",4.1,0,1,1,1,1);
return 1;
}
Not sure about that do..
Re: how? -
Alex_Valde - 06.11.2010
Look
here.
Re: how? -
dark_clown - 06.11.2010
this is my code
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"Bar dialog","1. Wine\n 2.Cigarret\n 3.Health","Buy", "Cancel");
return 1;
}
pawn Код:
switch(5) // Lookup the dialogid
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "You cancelled the bought");
return 1; // We processed it
}
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 6500) return SendClientMessage(playerid,0xFF0006FF,"ERROR:You dont have 6500$");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
SendClientMessage(playerid,0x1DE817FF,"Enjoy your beer");
}
case 1:
{
if(GetPlayerMoney(playerid) < 9500) return SendClientMessage(playerid,0xFF0006FF,"ERROR:You dont have 9500$");
ApplyAnimation(playerid,"JST_BUISNESS","smoke_01",4.1,0,1,1,1,1);
SendClientMessage(playerid,0x1DE817FF,"Enjoy your ciggy");
}
case 2:
{
if(GetPlayerMoney(playerid) < 10500) return SendClientMessage(playerid,0xFF0006FF,"ERROR:You dont have 10500$");
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,0x1DE817FF,"Health restored");
}
}
}
}
i have more but its not related to this but none of the actions work it dosnt give anything to them
Re: how? -
Mike_Peterson - 06.11.2010
jeez its just these two
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRI NK_WINE);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMO KE_CIGGY);
Re: how? -
dark_clown - 06.11.2010
nothin happens
even if i switch weapons
Re: how? -
Mike_Peterson - 06.11.2010
look at my post