Hali,Hogyan tudnam megcsinalni ugy hogy amelyik bandat valasztja a jatekos azon a spawnon rakja le? (Groove Spawn=2495.3079,-1685.2106,13.5124) (Ballas Spawn=2161.6279,-1790.4457,13.5198)
#include <a_samp>
new pTeam[MAX_PLAYERS]; // ennek szerintem így kellene lennie new pTeam[MAX_PLAYERS];
#define TEAM_GROOVE 1
#define TEAM_BALLAS 2
main()
{
print(\"\\n----------------------------------\");
print(\" Blank Gamemode by your name here\");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"Blank Script\");
AddPlayerClass(106, 1958.3783, 1343.1572, 15.3746, 269.1425, 16,10,22,1000,26,500,32,1000,31,1000,34,500);
AddPlayerClass(102, 1958.3783, 1343.1572, 15.3746, 269.1425, 16,10,22,1000,26,500,32,1000,31,1000,34,500);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
switch(classid)
{
case 0:
{
SetPlayerTeam(playerid,TEAM_GROOVE);
SetPlayerColor(playerid,0x399050FF);
GameTextForPlayer(playerid,\"~b~GROOVE\",5000,3);
SetPlayerPos(2495.3079,-1685.2106,13.5124,3.0);
return 1;
}
case 1:
{
SetPlayerTeam(playerid,TEAM_BALLAS);
SetPlayerColor(playerid,0x9C17BFFF);
GameTextForPlayer(playerid,\"~r~BALLAS\",5000,3);
SetPlayerPos(2161.6279,-1790.4457,13.5198,3.0);
return 1;
}
}
return 1;
}