SA-MP Forums

SA-MP Forums (
-   Scripting Help (
-   -   Help (

nightday 02/09/2014 08:24 PM

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 02/09/2014 08:53 PM

Re: Help
Guys i want know any one help me i try Search in ****** but i dont know any things please help

Mzake 02/09/2014 09:15 PM

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 :
Change grove street name to "civilians" and their colors as u want :) Hope it will work!
+rep if helped! :)

nightday 02/09/2014 09:29 PM

Re: Help

Originally Posted by Mzake (Post 3184374)
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 :
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 

Mzake 02/09/2014 09:39 PM

Re: Help
add like this then :)
pawn Code:
SetPlayerTeamFromClass(playerid, 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;

Stinged 02/09/2014 09:40 PM

Re: Help
Organize them. Place them like:

All police classes
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;

nightday 02/09/2014 09:48 PM

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

Stinged 02/09/2014 09:55 PM

Re: Help
If you don't know anything, why are you scripting?

nightday 02/09/2014 09:59 PM

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

Stinged 02/09/2014 10:04 PM

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;

All times are GMT. The time now is 01:13 PM.

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