[POMOC]Nema errora ali ne radi - HITNO :)

Započeo Arnel_Bp, Mart 10, 2014, 16:22:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Scripta koju koristim: Moja od 0
Detaljan opis problema:Uradio sam ovo kako treba po systemu ali nzm sta je ovo kad se spawn-am za svaki gTeam isti tekst pokazuje nzm sta mu je i istu boju moze li neko ovo da mi pogleda sta je problem
Dio Skripte: 

[code]#define TEAM_SWAT 0
#define TEAM_COP 1
#define TEAM_BANKER 2
[/code]

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP) {
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
}
else if(gTeam[playerid] == TEAM_BANKER) {
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
}
else if(gTeam[playerid] == TEAM_SWAT) {
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
    }
    return 1;
}


Slike/video: Nema errora ali ovaj je neki bug, sta mu se moze uraditi ?

Pa dali prije nego sto se igrac spawnuje bira team? Mora prvo izabrati team pa onda da se spawnuje da bi ovaj tekst normalno radio...

My Bike KTM 450 SXF 2008

Citat: LS|Vuzimir poslato Mart 10, 2014, 16:39:00 POSLE PODNE
Pa dali prije nego sto se igrac spawnuje bira team? Mora prvo izabrati team pa onda da se spawnuje da bi ovaj tekst normalno radio...


public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
switch (classid) {

case 0:
{
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}


pa onda ispod

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP) {
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
}
else
if(gTeam[playerid] == TEAM_BANKER) {
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
}
else
if(gTeam[playerid] == TEAM_SWAT) {
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
    }
    return 1;
}


za sve pokazuje isti tekst i color koje sam stavio ? Sta mu je problem jebo mu majku

svoj OnPlayerRequestClass zamjeni sa ovim:


public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
switch (classid) {

case 0:
{
        gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
        gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
        gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}

My Bike KTM 450 SXF 2008

Citat: LS|Vuzimir poslato Mart 10, 2014, 16:52:03 POSLE PODNE
svoj OnPlayerRequestClass zamjeni sa ovim:


public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
switch (classid) {

case 0:
{
        gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
        gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
        gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}


Nista se ne mijenja sve je isto... nzm sta mu je :S. Da nije kakva gdeska u necemu drugome

ja sam ovako stavio isto

SetPlayerTeamFromClass(playerid, classid) {

if(classid == 0) {

gTeam[playerid] = TEAM_SWAT;

} else if(classid == 1) {

    gTeam[playerid] = TEAM_COP;

} else if(classid == 2) {

    gTeam[playerid] = TEAM_BANKER;
}

}


ovo maloprije nisam postavlja, da ovo sta ne koci?

ovo SetPlayerTeamFromClass(playerid, classid)

to ti je isto kao sto sam ja dodao ovo gTeam[playerid] = TEAM_SWAT;

to uzme classid koji si izabrao i stavi ti ga za gTeam...

Nezanm do cega bi to moglo biti...Tebi ispise tekst nakon sto stisnes spawn jel tako?

probaj ovako OnPlayerSpawn:

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP)
      {
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
            return 1;
}
if(gTeam[playerid] == TEAM_BANKER)
       {
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
        return 1;
}
if(gTeam[playerid] == TEAM_SWAT)
        {
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
       return 1;
    }
    return 1;
}
Poslednja Izmena: Mart 10, 2014, 17:42:24 POSLE PODNE od LS|Vuzimir

My Bike KTM 450 SXF 2008

Citat: LS|Vuzimir poslato Mart 10, 2014, 17:39:31 POSLE PODNE
ovo SetPlayerTeamFromClass(playerid, classid)

to ti je isto kao sto sam ja dodao ovo gTeam[playerid] = TEAM_SWAT;

to uzme classid koji si izabrao i stavi ti ga za gTeam...

Nezanm do cega bi to moglo biti...Tebi ispise tekst nakon sto stisnes spawn jel tako?

probaj ovako OnPlayerSpawn:

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP)
      {
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
            return 1;
}
if(gTeam[playerid] == TEAM_BANKER)
       {
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
        return 1;
}
if(gTeam[playerid] == TEAM_SWAT)
        {
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
       return 1;
    }
    return 1;
}



Prvo se spawn pa mi ovo pise ali sve isto aj probacu ovo sad sto mi posla

Pa znaci tebi se prvo spawnuje igrac i ispise tekst pa tek onda biras tim? ako je tako reci napravicu ti ja drugacije da ide...

My Bike KTM 450 SXF 2008

Citat: LS|Vuzimir poslato Mart 10, 2014, 17:51:02 POSLE PODNE
Pa znaci tebi se prvo spawnuje igrac i ispise tekst pa tek onda biras tim? ako je tako reci napravicu ti ja drugacije da ide...

Ovako znaci udjem u igricu i onda sta mi izbacuje drugo, izbacuju mi classes, ja idem lijevo desno i biram skin kad izaberem i kliknem spawn hocu da mi ispise tekst za team koji je namijenjen a stavio sam ovako prvo mi ide da biram pa onda na spawn se isti tekst ispisuje na svaki team, ja hocu na spawn da se ispusuje tekst koji je namijenjen na gTeam a ne ovako kako je

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
switch (classid) {

case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}

public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1237.5000, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1233.4688, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1245.5625, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1241.5313, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1643.3672, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1643.3672, 14.6016, 0.25);
    RemoveBuildingForPlayer(playerid, 5928, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 5704, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1330.6016, -1340.9844, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1326.6953, -1316.0078, 8.7266, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1327.5938, -1333.6719, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1332.0000, -1309.4297, 8.7266, 0.25);

RemoveBuildingForPlayer(playerid, 1502, 332.7734, 154.0234, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7500, 165.5156, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7109, 183.4922, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 344.8750, 157.1953, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 339.1875, 173.8984, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 347.3828, 178.5781, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 364.2422, 173.9375, 1013.1641, 0.25);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP)
{
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_BANKER)
{
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_SWAT)
{
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
    }
    return 1;
}


pa mi vidi to ako mozes :)

ajde probaj ovako:

public OnPlayerRequestClass(playerid, classid)
{
switch (classid) {

case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}

My Bike KTM 450 SXF 2008

Citat: LS|Vuzimir poslato Mart 10, 2014, 17:56:49 POSLE PODNE
ajde probaj ovako:

public OnPlayerRequestClass(playerid, classid)
{
switch (classid) {

case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}


ma isti, moguli ja tebi dati citavu FS sa ovim, mislim GM pa ti vidi, nema u njega puno tek sam poceo ovo da gledam kako ide?

Evo ovako pa ti vidi ako mozes sta je problem

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

#define TEAM_SWAT 0
#define TEAM_COP 1
#define TEAM_BANKER 2

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif
new gTeam[MAX_PLAYERS];
new TEAM_COP;
new TEAM_SWAT;
new TEAM_BANKER;
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(285,1227.0822,-1640.1735,13.5431,178.3626,31,10000,24,100000,26,100000); // SPAWN FOR SWAT
AddPlayerClass(286,1579.4984,-1632.4553,13.3828,359.3362,0,0,0,0,0,0); // SPAWN FOR COP
AddPlayerClass(292,1285.4990,-1343.4950,13.5861,55.2047,0,0,0,0,0,0); // BANK SPAWN
UsePlayerPedAnims();
return 1;
}

public OnGameModeExit()
{
return 1;
}
SetPlayerTeamFromClass(playerid, classid) {

if(classid == 0) {

gTeam[playerid] = TEAM_SWAT;

} else if(classid == 1) {

    gTeam[playerid] = TEAM_COP;

} else if(classid == 2) {

    gTeam[playerid] = TEAM_BANKER;
}

}
public OnPlayerRequestClass(playerid, classid)
{
switch (classid) {

case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}

public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1237.5000, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1233.4688, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1245.5625, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1241.5313, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1643.3672, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1643.3672, 14.6016, 0.25);
    RemoveBuildingForPlayer(playerid, 5928, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 5704, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1330.6016, -1340.9844, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1326.6953, -1316.0078, 8.7266, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1327.5938, -1333.6719, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1332.0000, -1309.4297, 8.7266, 0.25);

RemoveBuildingForPlayer(playerid, 1502, 332.7734, 154.0234, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7500, 165.5156, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7109, 183.4922, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 344.8750, 157.1953, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 339.1875, 173.8984, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 347.3828, 178.5781, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 364.2422, 173.9375, 1013.1641, 0.25);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP)
{
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_BANKER)
{
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_SWAT)
{
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, 0x00FFFFFF, "This player has been kicked from the S.W.A.T. Team.");
    SendClientMessage(playerid, 0x00FFFFFF, "{FF0000}Unfortunately, you are kicked from the {00FFFF}S.W.A.T. {FF0000}Team.");
    SetPlayerHealth(playerid, 0);
return 1;
}
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

evo ti sada bi trebalo da radi:

#include <a_samp>

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

new gTeam[MAX_PLAYERS];
#define TEAM_SWAT 0
#define TEAM_COP 1
#define TEAM_BANKER 2


public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(285,1227.0822,-1640.1735,13.5431,178.3626,31,10000,24,100000,26,100000); // SPAWN FOR SWAT
AddPlayerClass(286,1579.4984,-1632.4553,13.3828,359.3362,0,0,0,0,0,0); // SPAWN FOR COP
AddPlayerClass(292,1285.4990,-1343.4950,13.5861,55.2047,0,0,0,0,0,0); // BANK SPAWN
UsePlayerPedAnims();
return 1;
}

public OnGameModeExit()
{
return 1;
}
SetPlayerTeamFromClass(playerid, classid) {

if(classid == 0) {

gTeam[playerid] = TEAM_SWAT;

} else if(classid == 1) {

    gTeam[playerid] = TEAM_COP;

} else if(classid == 2) {

    gTeam[playerid] = TEAM_BANKER;
}

}
public OnPlayerRequestClass(playerid, classid)
{
switch (classid) {

case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}

public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1237.5000, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1233.4688, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1245.5625, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1241.5313, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1643.3672, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1643.3672, 14.6016, 0.25);
    RemoveBuildingForPlayer(playerid, 5928, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 5704, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1330.6016, -1340.9844, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1326.6953, -1316.0078, 8.7266, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1327.5938, -1333.6719, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1332.0000, -1309.4297, 8.7266, 0.25);

RemoveBuildingForPlayer(playerid, 1502, 332.7734, 154.0234, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7500, 165.5156, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7109, 183.4922, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 344.8750, 157.1953, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 339.1875, 173.8984, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 347.3828, 178.5781, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 364.2422, 173.9375, 1013.1641, 0.25);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP)
{
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_BANKER)
{
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_SWAT)
{
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, 0x00FFFFFF, "This player has been kicked from the S.W.A.T. Team.");
    SendClientMessage(playerid, 0x00FFFFFF, "{FF0000}Unfortunately, you are kicked from the {00FFFF}S.W.A.T. {FF0000}Team.");
    SetPlayerHealth(playerid, 0);
return 1;
}
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}


i ovo stavljas kao GM ne kao FS...

My Bike KTM 450 SXF 2008

Citat: LS|Vuzimir poslato Mart 10, 2014, 18:07:48 POSLE PODNE
evo ti sada bi trebalo da radi:

#include <a_samp>

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

new gTeam[MAX_PLAYERS];
#define TEAM_SWAT 0
#define TEAM_COP 1
#define TEAM_BANKER 2


public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(285,1227.0822,-1640.1735,13.5431,178.3626,31,10000,24,100000,26,100000); // SPAWN FOR SWAT
AddPlayerClass(286,1579.4984,-1632.4553,13.3828,359.3362,0,0,0,0,0,0); // SPAWN FOR COP
AddPlayerClass(292,1285.4990,-1343.4950,13.5861,55.2047,0,0,0,0,0,0); // BANK SPAWN
UsePlayerPedAnims();
return 1;
}

public OnGameModeExit()
{
return 1;
}
SetPlayerTeamFromClass(playerid, classid) {

if(classid == 0) {

gTeam[playerid] = TEAM_SWAT;

} else if(classid == 1) {

    gTeam[playerid] = TEAM_COP;

} else if(classid == 2) {

    gTeam[playerid] = TEAM_BANKER;
}

}
public OnPlayerRequestClass(playerid, classid)
{
switch (classid) {

case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerCameraPos(playerid, 1227.7701,-1651.3027,13.5431);
SetPlayerCameraLookAt(playerid, 1227.0822,-1640.1735,13.5431);
SetPlayerColor(playerid,0x00FFFFFF);
}
case 1:
{
gTeam[playerid] = TEAM_COP;
GameTextForPlayer(playerid, "~b~POLICE OFFICER~n~~w~CITY OFFICER", 3000, 5);
SetPlayerPos(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerCameraPos(playerid, 1579.6605,-1617.2823,13.3828);
SetPlayerCameraLookAt(playerid, 1579.4984,-1632.4553,13.3828);
SetPlayerColor(playerid,0x8A2BE2AA);
}
case 2:
{
gTeam[playerid] = TEAM_BANKER;
GameTextForPlayer(playerid, "~g~BANKER", 3000, 5);
SetPlayerPos(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerCameraPos(playerid, 1253.2236,-1321.3083,13.0893);
SetPlayerCameraLookAt(playerid, 1285.4990,-1343.4950,13.5861);
SetPlayerColor(playerid,0xFFFFFF);
}
}
return 1;
}

public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1237.5000, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1233.4688, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1245.5625, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1241.5313, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1643.3672, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1643.3672, 14.6016, 0.25);
    RemoveBuildingForPlayer(playerid, 5928, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 5704, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1330.6016, -1340.9844, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1326.6953, -1316.0078, 8.7266, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1327.5938, -1333.6719, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1332.0000, -1309.4297, 8.7266, 0.25);

RemoveBuildingForPlayer(playerid, 1502, 332.7734, 154.0234, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7500, 165.5156, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 332.7109, 183.4922, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 344.8750, 157.1953, 1013.1719, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 339.1875, 173.8984, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 347.3828, 178.5781, 1013.1641, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 364.2422, 173.9375, 1013.1641, 0.25);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
    SetCameraBehindPlayer(playerid);
if(gTeam[playerid] == TEAM_COP)
{
SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_BANKER)
{
SendClientMessage(playerid,0xFF0000AA, "Type /commands for your commands");
SendClientMessage(playerid,0xFF0000AA, "LOS SANTOS BANKER: Your job is to work in the LOS SANTOS BANK.");
SendClientMessage(playerid,0xFF0000AA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
}
if(gTeam[playerid] == TEAM_SWAT)
{
SendClientMessage(playerid,0x00FFFFFF, "Type /commands for your commands");
SendClientMessage(playerid,0x00FFFFFF, "SWAT: Your job is to keep searching for criminals and /drag them.");
SendClientMessage(playerid,0x00FFFFFF, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
return 1;
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, 0x00FFFFFF, "This player has been kicked from the S.W.A.T. Team.");
    SendClientMessage(playerid, 0x00FFFFFF, "{FF0000}Unfortunately, you are kicked from the {00FFFF}S.W.A.T. {FF0000}Team.");
    SetPlayerHealth(playerid, 0);
return 1;
}
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}


i ovo stavljas kao GM ne kao FS...

Radi ovo ali mi za svaki team ista boja kad nesto pisem u chat ovako

SetPlayerColor(playerid,0x00FFFFFF);

ako mozes jos to i nista vise :) ovo radi i hvala na ovome

Dodaj kada se ispise onaj text igracu kada se spawnuje da mu onda psotavi boju...

My Bike KTM 450 SXF 2008