[Pomoc] Invite

Započeo [JV:RP] Milos
1. Mar. 2014. Zaključano
515
pregleda
9
postova
Milos_Jovanovic
5
Underboss
1. Mar. 2014.
Ime skripte: FC-RP
Opis problema: Pa hocu da kad lider kuca /invite nekom clanu da stihgne Lider taj i taj vas je pozvao da se pridruzite toj i toj organizaciji da prihvatite poziv /accept invite i kada igrac kuca /accept invite tek onda postane clan
Nesto da dodate: Radio sam vec ali mi nije radio kad prihvati i ako moze detaljno objasnjenje sve gde sta da stavim da vas vise ne mucim u ovoj temi
Evo /invite komande
	if(strcmp(cmd, "/invite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje:/invite [ID Igraca/Dio Imena]");
return 1;
}
new para1;
new ftext;
para1 = ReturnUser(tmp);
if (PlayerInfo >= 1)
{
    if(IsPlayerConnected(para1))
    {
if(PlayerInfo < 2)
{
SendClientMessage(playerid, COLOR_GREY, "  Igrac mora biti minimum lvl 2! ");
return 1;
}
        if(para1 != INVALID_PLAYER_ID)
        {
    if (gTeam==TEAM_GREEN && PlayerInfo == 0 && PlayerInfo == 255)
    {
        if(PlayerInfo == 1) { PlayerInfo = 2; gTeam = 2; ftext = "LS-PD"; ChosenSkin = 71; SetPlayerSkin(para1, 71); }
        else if(PlayerInfo == 2) { PlayerInfo = 2; gTeam = 2; ftext = "FBI Agent"; ChosenSkin = 286; SetPlayerSkin(para1, 286); }
        else if(PlayerInfo == 3) { PlayerInfo = 2; gTeam = 2; ftext = "S.W.A.T"; ChosenSkin = 287; SetPlayerSkin(para1, 287); }
        else if(PlayerInfo == 4) { PlayerInfo = 1; gTeam = 1; ftext = "Hitna Pomoc"; ChosenSkin = 70; SetPlayerSkin(para1, 70); }
        else if(PlayerInfo == 5) { PlayerInfo = 5; gTeam = 5; ftext = "Black Guerilla"; ChosenSkin = 108; SetPlayerSkin(para1, 108); }
        else if(PlayerInfo == 6) { PlayerInfo = 6; gTeam = 6; ftext = "The Escobar"; ChosenSkin = 60; SetPlayerSkin(para1, 60); }
        else if(PlayerInfo == 7) { return 1; }
        else if(PlayerInfo == 8) { PlayerInfo = 10; gTeam = 12; ftext = "Hitman Agencija"; ChosenSkin = 249; SetPlayerSkin(para1, 249); }
        else if(PlayerInfo == 9) { PlayerInfo = 12; gTeam = 12; ftext = "Radio Televizija"; ChosenSkin = 148; SetPlayerSkin(para1, 148); }
        else if(PlayerInfo == 10) { PlayerInfo = 12; gTeam = 12; ftext = "Taxi Organizacija"; ChosenSkin = 255; SetPlayerSkin(para1, 255); }
        else if(PlayerInfo == 11) { PlayerInfo = 11; gTeam = 11; ftext = "AMSB"; ChosenSkin = 71; SetPlayerSkin(para1, 71); }
        else if(PlayerInfo == 12) { PlayerInfo = 12; gTeam = 12; ftext = "The Red Brigade"; ChosenSkin = 125; SetPlayerSkin(para1, 125); }
        else if(PlayerInfo == 13) { PlayerInfo = 13; gTeam = 13; ftext = "Balkan Snakes Family"; ChosenSkin = 100; SetPlayerSkin(para1, 100); }
        else if(PlayerInfo == 14) { PlayerInfo = 5; gTeam = 5; ftext = "MS-13"; ChosenSkin = 169; SetPlayerSkin(para1, 169); }
        else if(PlayerInfo == 15) { PlayerInfo = 15; gTeam = 15; ftext = "Italian Syndicate"; ChosenSkin = 117; SetPlayerSkin(para1, 117); }
        else if(PlayerInfo == 16) { PlayerInfo = 16; gTeam = 16; ftext = "Hot Wheels "; ChosenSkin = 247; SetPlayerSkin(para1, 247); }
        //else if(PlayerInfo == 17) { PlayerInfo = 17; gTeam = 17; ftext = "CIA"; ChosenSkin = 188; SetPlayerSkin(para1, 188); }
        else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo = PlayerInfo;
PlayerInfo = 1;
printf("{FFFFFF}Admin: %s je pozvao %s-a da se pridruzi %s.", sendername, giveplayer, ftext);
format(string, sizeof(string), " Lider %s vas je pozvao da postane clan organizacije %s.", sendername, ftext);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), "Pozvali ste %s-a da se pridruzi vasoj %s organizaciji", giveplayer,ftext);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Taj igrac je vec u jednoj organizaciji");
    return 1;
}
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}
Blaeks_Biofor
5
Forum Don
1. Mar. 2014.
napravis novu varijablu, i onda ovaj deo invajta tu prebises pod komandu /accept invite

znaci postavis varijablu, pod novu komandu /accept invite je proveris i onda invajtujes
Milos_Jovanovic
5
Underboss
1. Mar. 2014.
pravio sam pokusao sam ali ne radi mozes mi to sve uradit
Blaeks_Biofor
5
Forum Don
1. Mar. 2014.
naravno da ne mogu, ja nisam ovde da ti skriptam, ja sam ti pokazao kako i sta

postavis mu varijablu
varijabla = 1;

SCM(giveplayerid, -1, " kucajte /acceptinvite ");
onda napravis komandu
CMD:Acceptinvite(playerid, params[])
{
if(varijabla == 1)
{
//ovde posalji deo za invite
return 1;
}
}
James_SmithXDl
6
OG Legend
1. Mar. 2014.
ili da uradis na nacin kao sto je bleaks rekao samo da na varijablu kojom igracu pozivas invite kacis id organizacije u kojoj si lider da nebi posle bilo problema.
Milos_Jovanovic
5
Underboss
1. Mar. 2014.
Pokazu mi se ovi errori
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3508) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3534) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3564) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3565) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3589) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3885) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3889) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3900) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3912) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3916) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3920) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3931) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3935) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3947) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3951) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3955) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3959) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3963) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3967) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3971) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3975) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3979) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3983) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3987) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3991) : error 004: function "PlayerToPoint" is not implemented
C:\Users\x7\Desktop\Naj Noviji FC\2013\Faction City\gamemodes\FC-RP14.pwn(3995) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

26 Errors.

Ovako sam postavio nadam se da je to tako tacno
	if(strcmp(cmd, "/acceptinvite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(varijabla == 1)
{
        if(para1 != INVALID_PLAYER_ID)
        {
    if (gTeam==TEAM_GREEN && PlayerInfo == 0 && PlayerInfo == 255)
    {
        if(PlayerInfo == 1) { PlayerInfo = 2; gTeam = 2; ftext = "LS-PD"; ChosenSkin = 71; SetPlayerSkin(para1, 71); }
        else if(PlayerInfo == 2) { PlayerInfo = 2; gTeam = 2; ftext = "FBI Agent"; ChosenSkin = 286; SetPlayerSkin(para1, 286); }
        else if(PlayerInfo == 3) { PlayerInfo = 2; gTeam = 2; ftext = "S.W.A.T"; ChosenSkin = 287; SetPlayerSkin(para1, 287); }
        else if(PlayerInfo == 4) { PlayerInfo = 1; gTeam = 1; ftext = "Hitna Pomoc"; ChosenSkin = 70; SetPlayerSkin(para1, 70); }
        else if(PlayerInfo == 5) { PlayerInfo = 5; gTeam = 5; ftext = "Black Guerilla"; ChosenSkin = 108; SetPlayerSkin(para1, 108); }
        else if(PlayerInfo == 6) { PlayerInfo = 6; gTeam = 6; ftext = "The Escobar"; ChosenSkin = 60; SetPlayerSkin(para1, 60); }
        else if(PlayerInfo == 7) { return 1; }
        else if(PlayerInfo == 8) { PlayerInfo = 10; gTeam = 12; ftext = "Hitman Agencija"; ChosenSkin = 249; SetPlayerSkin(para1, 249); }
        else if(PlayerInfo == 9) { PlayerInfo = 12; gTeam = 12; ftext = "Radio Televizija"; ChosenSkin = 148; SetPlayerSkin(para1, 148); }
        else if(PlayerInfo == 10) { PlayerInfo = 12; gTeam = 12; ftext = "Taxi Organizacija"; ChosenSkin = 255; SetPlayerSkin(para1, 255); }
        else if(PlayerInfo == 11) { PlayerInfo = 11; gTeam = 11; ftext = "AMSB"; ChosenSkin = 71; SetPlayerSkin(para1, 71); }
        else if(PlayerInfo == 12) { PlayerInfo = 12; gTeam = 12; ftext = "The Red Brigade"; ChosenSkin = 125; SetPlayerSkin(para1, 125); }
        else if(PlayerInfo == 13) { PlayerInfo = 13; gTeam = 13; ftext = "Balkan Snakes Family"; ChosenSkin = 100; SetPlayerSkin(para1, 100); }
        else if(PlayerInfo == 14) { PlayerInfo = 5; gTeam = 5; ftext = "MS-13"; ChosenSkin = 169; SetPlayerSkin(para1, 169); }
        else if(PlayerInfo == 15) { PlayerInfo = 15; gTeam = 15; ftext = "Italian Syndicate"; ChosenSkin = 117; SetPlayerSkin(para1, 117); }
        else if(PlayerInfo == 16) { PlayerInfo = 16; gTeam = 16; ftext = "Hot Wheels "; ChosenSkin = 247; SetPlayerSkin(para1, 247); }
        //else if(PlayerInfo == 17) { PlayerInfo = 17; gTeam = 17; ftext = "CIA"; ChosenSkin = 188; SetPlayerSkin(para1, 188); }
        else { return 1; }
        varijabla = 1;
format(string, sizeof(string), " Lider %s vas je pozvao da postane clan organizacije %s.Da prohvatite poziv koristite /acceptinvite", sendername, ftext);
SendClientMessage(para1, COLOR_WHITE, string);
return 1;
}
}

Ako nije tacno nwesto molim vas ako vam nij emuka da mi uradite ako vam nije nravano muka
Blaeks_Biofor
5
Forum Don
1. Mar. 2014.
ocigledno zajebavas mene, ili samog sebe ? aj lepo procitaj sta gde da stavis
Milos_Jovanovic
5
Underboss
2. Mar. 2014.
Ne znajebavam nikog nisam raspolozen za nikakave zajebancije mozes li mi pokazati da od mojeg invitea lepo gde virbalu da stavim na vrh skripte a invite mi uradi ti jer vidis erorr mi se pokazuje
Blaeks_Biofor
5
Forum Don
2. Mar. 2014.
napravi novu komandu /accept invite kao sto sam ti rekao

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha