[Pomoc] Join na eventu

Započeo Scripter Braun, Maj 17, 2014, 10:55:33 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: GHRP
Detaljan opis problema: Kako da ubacim kada igrac kuca /join na eventu da ga odma stavi u vozilo ?
Dio skripte: Evo /join.
YCMD:join(playerid, params[], help)
{
    if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,""ZUTA"[AS:RP] "CRVENA"Ne mozete ucestvovati na eventu, zatvoreni ste!");
    if(StavljeneLisice[playerid] == 1) return SCM(playerid,-1,""ZUTA"[AS:RP] "CRVENA"Ne mozete ucestvovati na eventu, jer imate lisice!");
    if(IgracTazovan[playerid] == 1) return SCM(playerid,-1,""ZUTA"[AS:RP] "CRVENA"Ne mozete ucestvovati na eventu, jer ste tazovani!");
if(slotovi != 0)
{
if(Prisustvuje[playerid] == false && auts == false)
{
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
            UCount[playerid] = 1;
prisustvuje[playerid] = 1;
if(event == 1)
{
ecp[playerid] = 1;
Prisustvuje[playerid] = true;
slotovi--;
SetPlayerPos(playerid, 2603.7866,-2372.5149,13.1238);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 2)
{
ecp[playerid] = 2;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -509.9478,2589.1721,52.9780);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 3)
{
ecp[playerid] = 3;
Prisustvuje[playerid] = true;
            slotovi--;
SetPlayerPos(playerid, -269.5549,-2165.1125,28.7574);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 4)
{
ecp[playerid] = 4;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -2421.8689,-609.4372,132.2674);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 5)
{
ecp[playerid] = 5;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -2877.5713,423.5097,4.9590);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 6)
{
ecp[playerid] = 6;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -306.8569,1302.5017,53.6073);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 7)
{
ecp[playerid] = 7;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -2396.9985,-571.4738,132.1172);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 8)
{
ecp[playerid] = 8;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -1509.5323,975.5475,7.1853);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 9)
{
ecp[playerid] = 9;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, 2282.8188,-223.8763,11.7244);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 10)//raly 1
{
ecp[playerid] = 10;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -1947.5833,-2460.6743,30.7485);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 11)//raly 2
{
ecp[playerid] = 11;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, 303.3947,-732.6323,5.5578);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 12)
{
ecp[playerid] = 12;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -2498.3689,-1453.5709,361.8633);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 13)
{
ecp[playerid] = 13;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -2538.3408,-1470.2476,360.5102);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 14)
{
ecp[playerid] = 14;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid, -2260.2354,2278.6064,4.9886);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 15)
{
ecp[playerid] = 15;
Prisustvuje[playerid] = true;
            slotovi--;
            TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
            SetPlayerPos(playerid, 4033.7151,-2105.4895,5.9028);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
    TogglePlayerControllable(playerid,0);
    SetTimerEx("Ucitavanje",1000,false,"i",playerid);
}
else if(event == 16)
{
ecp[playerid] = 16;
Prisustvuje[playerid] = true;
            slotovi--;
            TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
            SetPlayerPos(playerid,704.7015,-3434.2771,18.2241);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
    TogglePlayerControllable(playerid,0);
    SetTimerEx("Ucitavanje",1000,false,"i",playerid);
}
else if(event == 17)
{
ecp[playerid] = 17;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid,-2361.7668,-2189.4280,33.5759);
vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 18)//NRG
{
ecp[playerid] = 18;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid,1410.1050,-1308.8313,9.4301);
NGRTRKA[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 19)//monster
{
    ecp[playerid] = 19;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid,-1637.0322,1044.6771,69.8280);
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 20)//drift
{
    ecp[playerid] = 20;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid,2262.2480,1399.4867,42.8203);
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 21)//potapanje brodova
{
    ecp[playerid] = 21;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid,-818.7883,1911.1190,7.0000);
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
else if(event == 22)//beachhell
{
    ecp[playerid] = 22;
Prisustvuje[playerid] = true;
            slotovi--;
            SetPlayerPos(playerid,-2937.5605,452.5544,3.5395);
            vorcp[playerid] = 0;
                PlayerInfo[playerid][pPridruzeneventu] = 1;
ResetPlayerWeapons(playerid);
}
}
else return SCM(playerid,-1,"Samo jednom mozete koristiti /join u toku jednog eventa ili je event vec krenuo!");
}
else return SCM(playerid,-1,"Zao nam je broj mesta za ovaj event je popunjen, vise srece drugi put!");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //
    ~ Member since: 09.13.2013. - 15:30 ~


AKo stavim kad kuca join jel treba da stavim u koji id auta da se put ili samo put player ?
    ~ Member since: 09.13.2013. - 15:30 ~