SA-MP Forums Archive
Grove Street Faction Help ! - 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)
+--- Thread: Grove Street Faction Help ! (/showthread.php?tid=313884)



Grove Street Faction Help ! - SiEx - 27.01.2012

Hello

Where Can i Find Grove Street Faction ?
I Really need it For my Server


Please Help Me !


Re: Grove Street Faction Help ! - Face9000 - 27.01.2012

Are you using gTeam in your gamemode?


Re: Grove Street Faction Help ! - SiEx - 27.01.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Are you using gTeam in your gamemode?
Im Acctualy using Raven's Roleplay Gamemode , Can you help me with Grove Street Faction ?


Re: Grove Street Faction Help ! - Face9000 - 27.01.2012

Yeah,i'm trying.Does Raven's Roleplay uses gTeam?


Re: Grove Street Faction Help ! - SiEx - 27.01.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Yeah,i'm trying.Does Raven's Roleplay uses gTeam?
I Don't Know xD ! and thanks For Helping


Re: Grove Street Faction Help ! - Face9000 - 27.01.2012

Quote:
Originally Posted by SiEx
Посмотреть сообщение
I Don't Know xD ! and thanks For Helping
In the gamemode,search for "gTeam" without "" and see if there is something.

Or just see the other factions code and make a copy for the Groove Street.


Re: Grove Street Faction Help ! - SiEx - 27.01.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
In the gamemode,search for "gTeam" without "" and see if there is something.

Or just see the other factions code and make a copy for the Groove Street.
Yes it Uses gTeam Now What ?


Re: Grove Street Faction Help ! - Face9000 - 27.01.2012

Quote:
Originally Posted by SiEx
Посмотреть сообщение
Yes it Uses gTeam Now What ?
This is my gTeam coe in my gamemode.Since it uses gTeam,it should work.

Put this at bottom of your script,to start:

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0) //Replace the 0 with your new class id.
    {
        gTeam[playerid] = TEAM_GROOVE;
    }
}

SetPlayerToTeamColour(playerid)
{
    if(gTeam[playerid] == TEAM_GROOVE)
    {
        SetPlayerColor(playerid,YOUR_COLOR;
    }
}
OnPlayerRequestClass:

pawn Код:
SetPlayerTeamFromClass(playerid, classid);
OnPlayerSpawn:

pawn Код:
SetPlayerToTeamColour(playerid);
OnGameModeInit:

pawn Код:
AddPlayerClass(105,-2051.7437,478.5006,35.1723,261.2405,0,0,0,0,0,0); //GROOVE
Код:
skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo
Edit the float x,y,z and the spawn weapons.


Re: Grove Street Faction Help ! - SiEx - 27.01.2012

Thanks ! you are The Best !!


Re: Grove Street Faction Help ! - Face9000 - 27.01.2012

Quote:
Originally Posted by SiEx
Посмотреть сообщение
Thanks ! you are The Best !!
No problem.Post here if you have problems.