OnPlayerRequestSpawn = Ha a skinválsztóból spawnol.
Akkor ezt most hogy oldjam meg?
Itt van az OnPlayerRequestClass: public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 20:
{
if(PlayerInfo[playerid][banda] == TEAM_GROVE)
{
GameTextForPlayer(playerid,\"~g~Grove\",1000,6);
gTeam[playerid] = TEAM_GROVE;
}else{
GameTextForPlayer(playerid,\"~r~nem vagy grove tag!\",1000,6);}
}
case 21:
{
if(PlayerInfo[playerid][banda] == TEAM_BALLAS)
{
GameTextForPlayer(playerid,\"~p~Ballas\",1000,6);
gTeam[playerid] = TEAM_BALLAS;
}else{
GameTextForPlayer(playerid,\"~r~nem vagy ballas tag!\",1000,6);}
}
case 22:
{
if(PlayerInfo[playerid][banda] == TEAM_VAGOS)
{
GameTextForPlayer(playerid,\"~y~Vagos\",1000,6);
gTeam[playerid] = TEAM_VAGOS;
}else{
GameTextForPlayer(playerid,\"~r~nem vagy vagos tag!\",1000,6);}
}
case 23:
{
if(PlayerInfo[playerid][banda] == TEAM_MAFFIA)
{
GameTextForPlayer(playerid,\"~b~Maffia\",1000,6);
gTeam[playerid] = TEAM_MAFFIA;
}else{
GameTextForPlayer(playerid,\"~r~nem vagy maffia tag!\",1000,6);}
}
}
return 1;
}
OnPlayerSpawn: public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_GROVE)
{
if(PlayerInfo[playerid][banda] == TEAM_GROVE)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2080.4980,2664.1631,11.5764);
SetPlayerColor(playerid,0x0073FFFF);
GivePlayerWeapon(playerid,30,30);
SendClientMessage(playerid, COLOR_YELLOW, \"Banda információkról: /gang-help\");
GivePlayerMoney(playerid, 5000);
}
}
if(gTeam[playerid] == TEAM_BALLAS)
{
if(PlayerInfo[playerid][banda] == TEAM_BALLAS)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1663.5530,1949.3108,11.2701);
SetPlayerColor(playerid,0x0073FFFF);
GivePlayerWeapon(playerid,30,30);
SendClientMessage(playerid, COLOR_YELLOW, \"Banda információkról: /gang-help\");
GivePlayerMoney(playerid, 5000);
}
}
if(gTeam[playerid] == TEAM_VAGOS)
{
if(PlayerInfo[playerid][banda] == TEAM_VAGOS)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2804.7192,1301.0482,10.7500);
SetPlayerColor(playerid,0x0073FFFF);
GivePlayerWeapon(playerid,30,30);
SendClientMessage(playerid, COLOR_YELLOW, \"Banda információkról: /gang-help\");
GivePlayerMoney(playerid, 5000);
}
}
if(gTeam[playerid] == TEAM_MAFFIA)
{
if(PlayerInfo[playerid][banda] == TEAM_MAFFIA)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2816.0469,960.4532,10.7500);
SetPlayerColor(playerid,0x0073FFFF);
GivePlayerWeapon(playerid,30,30);
SendClientMessage(playerid, COLOR_YELLOW, \"Banda információkról: /gang-help\");
GivePlayerMoney(playerid, 5000);
}
}
return 1;
}