Invite problem - 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: Invite problem (
/showthread.php?tid=212948)
Invite problem -
GaB1TzZzu - 18.01.2011
How can i do an /invite system something like this: When you /invite someone to show him/her faction skins and to use "next" and "done", after he/she chose the skin, to set position where he was when he got /invite, with his skin.
Re: Invite problem -
Toreno - 18.01.2011
It's a huge script, it also saves the character is faction.
Use GF functions, there's "Next" and "Done" + /invite system.
Re: Invite problem -
GaB1TzZzu - 18.01.2011
I have this.. But i have a problem, when i write "done", i will spawn with another skin..
Re: Invite problem -
Toreno - 18.01.2011
What skin do you get when spawning after typing done?
Re: Invite problem -
GaB1TzZzu - 18.01.2011
pawn Код:
//----------------------------------[INVITE]------------------------------------------------
if(strcmp(cmd, "/invite", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");
return 1;
}
new para1;
new ftext[20];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
{
if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1]= 71; }
This is invite for PD.. after DONE i will have skin 71..
Re: Invite problem -
Toreno - 18.01.2011
Then what is problem?
Change 71 to any other skin you would like to put,
(If that's not what you meant, then explain me better...)
Re: Invite problem -
GaB1TzZzu - 18.01.2011
When i invite you, you have to choose the skin which you want to have.. When i invite you, you will respawn with 71 skin, not with that skin which you chose.
Re: Invite problem -
GaB1TzZzu - 19.01.2011
Help me .
Re: Invite problem -
GaB1TzZzu - 27.01.2011
UPPPPPPPPPP.
Re: Invite problem -
GaB1TzZzu - 28.01.2011
UPPPPP.