SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/09/2014, 08:24 PM   #1
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Help

i Want Know How to make gteam to i make commands and only use on gteam i want any one teach me how to make gteam to Cops id 265/ 266/ 267/ 280/281/282/283/284/288
all this on gteam cops
And Clivins i have Much But i dont use it here to its big to any one teach me how to make gteam cops and gteam Clivins and i make the ids clivins but i want gteam cops Color 3399FF its Color Blue And Clivins FFFFFF its Withe Please help please +Rep
nightday is offline   Reply With Quote
Old 02/09/2014, 08:53 PM   #2
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: Help

Guys i want know any one help me i try Search in ****** but i dont know any things please help
nightday is offline   Reply With Quote
Old 02/09/2014, 09:15 PM   #3
Mzake
Big Clucker
 
Mzake's Avatar
 
Join Date: Aug 2013
Location: Beside my friend's house
Posts: 131
Reputation: 10
Default Re: Help

i searched for you and found a great tutorial making 2 teams america and UK u can change name and colors....
EDIT: Link Is Useless.. (tutorial messed up!)
try this , this is more easier and better : http://forum.sa-mp.com/showthread.php?t=160810
Change grove street name to "civilians" and their colors as u want Hope it will work!
+rep if helped!
__________________
Mzake is offline   Reply With Quote
Old 02/09/2014, 09:29 PM   #4
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: Help

Quote:
Originally Posted by Mzake View Post
i searched for you and found a great tutorial making 2 teams america and UK u can change name and colors....
EDIT: Link Is Useless.. (tutorial messed up!)
try this , this is more easier and better : http://forum.sa-mp.com/showthread.php?t=160810
Change grove street name to "civilians" and their colors as u want Hope it will work!
+rep if helped!
but i have all this skin and this 2 skin only can u help me with gteam all this skin and +rep
PHP Code:
AddPlayerClass(266,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500); // citycop
AddPlayerClass(211,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500); // female citycop
AddPlayerClass(265,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500); // citycop
AddPlayerClass(267,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500); // citycop
AddPlayerClass(283,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500); //  police
AddPlayerClass(284,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500); //  police
AddPlayerClass(285,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500); //  police
AddPlayerClass(122,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // plain clothes
AddPlayerClass(71,-1261.6409,38.9104,14.1387,226.4688,3,1,22,50,29,500); // air cops
AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6779,22,50,0,0,0,0); // medic 2
AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn male
AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn female
AddPlayerClass(12,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
AddPlayerClass(23,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
AddPlayerClass(29,2815.0498,2254.1252,10.8203,158.6954,0,0,0,0,0,0); // hoody skin civi
AddPlayerClass(294,2814.0542,2253.4043,10.8203,315.9051,0,0,0,0,0,0); // woozie skin
AddPlayerClass(214,2812.1963,2247.7256,10.8203,352.8735,0,0,0,0,0,0); // civi
AddPlayerClass(1,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
AddPlayerClass(15,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
AddPlayerClass(34,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
AddPlayerClass(2,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
AddPlayerClass(9,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0); // civil skin
AddPlayerClass(19,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
AddPlayerClass(22,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
AddPlayerClass(26,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(31,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(45,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(46,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
AddPlayerClass(9,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); // civil skin
AddPlayerClass(13,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(14,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(24,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(33,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(36,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(38,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(160,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(82,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(107,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(59,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(127,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(128,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(138,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(28,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(147,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(299,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(123,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(204,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(249,2193.7366,2007.4865,12.2894,358.2378,15,1,15,500,28,500); //Pimp skin
AddPlayerClass(264,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(269,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(270,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(293,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // OG Loc
AddPlayerClass(271,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
AddPlayerClass(298,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // gloris skin///141
AddPlayerClass(137,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // Box on head Hobo guy 
nightday is offline   Reply With Quote
Old 02/09/2014, 09:39 PM   #5
Mzake
Big Clucker
 
Mzake's Avatar
 
Join Date: Aug 2013
Location: Beside my friend's house
Posts: 131
Reputation: 10
Default Re: Help

add like this then
pawn Code:
SetPlayerTeamFromClass(playerid, classid)
{
     Switch(classid)
     {
     case 0,1,2:gTeam[playerid] = GROVE_STREET; // as the class ID/number of skin :)
     case 3,4,5,6,7,8,9:gTeam[playerid] = POLICE;
     }  
}
__________________
Mzake is offline   Reply With Quote
Old 02/09/2014, 09:40 PM   #6
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: Help

Organize them. Place them like:
Code:
All police classes
[EMPTY LINE]
All civilian classes
Now, the first player class is 0, second is 1, third is 2 etc...

And then, use this with that tutorial.
pawn Code:
SetPlayerTeamFromClass(playerid, classid)
{
    switch (classid)
    {
        case 0 .. [END OF POLICE CLASSES]: gTeam[playerid] = POLICE;
        case [START OF CIVILIAN CLASSES] .. [END OF CIVILIAN CLASSES]: gTeam[playerid] = CIVILIAN;
    }
}
Stinged is offline   Reply With Quote
Old 02/09/2014, 09:48 PM   #7
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: Help

Guys i dont know now any one can you make with 2 Cops Skin And 2 Cops Clivins To know i dont know any one now please reply +Rep For 2 Helped Me i will rep now but help me to i dont know any things
nightday is offline   Reply With Quote
Old 02/09/2014, 09:55 PM   #8
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: Help

If you don't know anything, why are you scripting?
Stinged is offline   Reply With Quote
Old 02/09/2014, 09:59 PM   #9
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: Help

im not know 0, second is 1, third is 2 etc...
but if u can make 2 skin cops and 2 skin clivins to i know to im bad in english and im learn new in scripting
nightday is offline   Reply With Quote
Old 02/09/2014, 10:04 PM   #10
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: Help

pawn Code:
public OnGameModeInit()
{
    AddPlayerClass(284, 2303.9497, 2439.0103, 3.2734, 19.1234, 3, 1, 22, 50, 29, 500); // Police
    AddPlayerClass(285, 2303.9497, 2439.0103, 3.2734, 19.1234, 3, 1, 22, 50, 29, 500); // Police
   
    AddPlayerClass(299, 2193.7366, 2007.4865, 12.2894, 358.2378, 0, 0, 0, 0, 0, 0); // Civilian
    AddPlayerClass(269, 2193.7366, 2007.4865, 12.2894, 358.2378, 0, 0, 0, 0, 0, 0); // Civilian
    return 1;
}

SetPlayerTeamFromClass(playerid, classid)
{
    switch (classid)
    {
        case 0, 1: gTeam[playerid] = POLICE;
        case 2, 3: gTeam[playerid] = CIVILIAN;
    }
}
Stinged is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:17 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.