public OnPlayerRequestClass(playerid, classid)
{
switch (classid)
{
case 0, 1, 2:
{
Equipo[playerid] = 0;
GameTextForPlayer(playerid, "~b~Uruguay", 2000, 6);
}
case 3, 4, 5:
{
Equipo[playerid] = 1;
GameTextForPlayer(playerid, "~r~Argentina", 2000, 6);
}
}
SetPlayerPos(playerid, 709.973510, 916.487609, 51.555500);
SetPlayerFacingAngle(playerid, 316.176391);
SetPlayerCameraPos(playerid, 713.210754, 919.929504, 51.518421);
SetPlayerCameraLookAt(playerid, 709.973510, 916.487609, 51.555500);
return 1;
}
public OnPlayerConnect(playerid)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
ClearChatbox(playerid);
SetPlayerCameraPos(playerid,-2719.929931, -1209.007812, 195.455017);
SetPlayerCameraLookAt(playerid,-2720.824218, -1213.840332, 196.375518);
SendClientMessage(playerid, 0xDAD7F0FF, "Bienvenido al servidor, realiza lo que se te pida a continuaciуn...");
if(INI_Exist(playername))
{
INI_ParseFile(UserPath(playerid), "LoadUser_pass", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,DLOGIN,DIALOG_STYLE_PASSWORD ," ","Ingresa tu contraseсa.","Entrar","Salir");
return 1;
}
else
{
ShowPlayerDialog(playerid,DREGISTER,DIALOG_STYLE_PASSWORD ," ","Esta cuenta no estб registrada, introduce una contraseсa.","Registrar","Salir");
return 1;
}
}
Tambiйn tengo el mismo problema y aъn no encuentro soluciуn.
Lo que tienes que hacer es presionar en los botones de direcciуn '<<' o '>>' y se habilita el cambio de clases. |
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, false);
Aqui te va una soluciуn:
OnPlayerConnect(playerid): pawn Код:
pawn Код:
|