When you type /invite id you get a skin id.. -
davelord - 23.01.2011
Hey! Can someone of you make me a command? When you type /invite (factionid) (id) the selected player gets a message: " (playername) has invited you to (gangname)! Please use /accept invite. When they type /accept invite they get a message: " Sorry! You need to use /accept invite (skins: 1 - 2 - 3. So, what i'm asking, if you could create me a command script with this in it, and they need a own id. Faction id 1 has skin id 114 115 116, and such on. But i'd like to enter the skin ID's myself. And if you need to create a command for each faction, there are 9 factions. Thanks, and i hope you'll help me!
Re: When you type /invite id you get a skin id.. -
davelord - 23.01.2011
Someone?
Re: When you type /invite id you get a skin id.. -
bartje01 - 23.01.2011
On top:
new grove[MAX_PLAYERS];
new cop[MAX_PLAYERS];
The command using ZCMD
pawn Код:
COMMAND:invite(playerid,params[])
{
new id,factionname[50];
if(sscanf(params,"us[50]",id,factionname)) return SendClientMessage(playerid,COLOR_RED,"HINT: /invite [playerid] [factionname]");
else
{
if(!strcmp(factionname,"lspd",true))
{
ShowPlayerDialog(id,1,DIALOG_STYLE_MSGBOX,"Faction Invite","You've been invited for Los Santos Police Department","Accept","Cancel");
}
else if(!strcmp(factionname,"grove",true))
{
ShowPlayerDialog(id,2,DIALOG_STYLE_MSGBOX,"Faction Invite","You've been invited for Grove Street Families","Accept","Cancel");
}
else
{
SendClientMessage(playerid,COLOR_RED,"Invalid choice");
SendClientMessage(playerid,COLOR_GREY,"Valid Choices: lspd,grove");
}
}
return 1;
}
@ onplayerdialog response
pawn Код:
if (dialogid == 1)
{
if(!response) return SendClientMessage(playerid, COLOR_RED, "You canceled!");
cop[playerid] = 1;
SetPlayerSkin(playerid,SKINID);
SendClientMessage(playerid,COLOR_BLUE,"You've joined Los Santos Police Department");
}
else
if (dialogid == 2)
{
if(!response) return SendClientMessage(playerid, COLOR_RED, "You canceled!");
grove[playerid] = 1;
SetPlayerSkin(playerid,SKINID);
SendClientMessage(playerid,COLOR_GREEN,"You've joined Grove Street Families");
}
Alright. I'm not sure if this works. I wrote this and not tested it.
I'm not even sure why I've made this for you since this isn't the script request thread.
I hope it works
Greets.
EDIT:
You already bumped your post like in 15 minutes.
The rule is that you can't bump your thread within 48 hours (Which I think is way to long)
I can deal with bumping in 5-6 hours. That won't annoy me.
But this is to fast.
Other rules:
https://sampforum.blast.hk/showthread.php?tid=45235
Re: When you type /invite id you get a skin id.. -
davelord - 23.01.2011
Oh, okay, by the way, thanks.
Re: When you type /invite id you get a skin id.. -
bartje01 - 23.01.2011
Well, does it work? xP
If not, just reply.
Re: When you type /invite id you get a skin id.. -
davelord - 23.01.2011
Well, i havent tested thоs, maybe later.
Re: When you type /invite id you get a skin id.. -
bartje01 - 23.01.2011
Ok.
Then you can just PM me when the code fails xp
Re: When you type /invite id you get a skin id.. -
davelord - 23.01.2011
I dont know how to install it. Can you be more spefic?