if(GetPlayerTeam(playerid) = equipoasdasd) { AddPlayerClass(108, -1390.000,1491.000,8.000, 90.0000 ,23, 99999, 24, 999999, 31, 99999); AddPlayerClass(109, -1390.000,1491.000,8.000, 90.0000 ,23, 99999, 24, 999999, 31, 99999); AddPlayerClass(110, -1390.000,1491.000,8.000, 90.0000 ,33, 99999, 24, 999999, 31, 99999); }
public OnPlayerRequestClass(playerid,classid) {
switch(GetPlayerTeam(playerid)){
case EQUIPO_1: { //EQUIPO 1
switch(classid){
case 3 .. 6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: { //LOS SKINS PARA EL EQUIPO 1
//TU FUNCION PARA EL EQUIPO 1
}
}
}
case EQUIPO_2: { //EQUIPO 2
switch(classid){
case 3 .. 6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: { //LOS SKINS PARA EL EQUIPO 2
//TU FUNCION PARA EL EQUIPO 2
}
}
}
case EQUIPO_3: { //EQUIPO 3
switch(classid){
case 3 .. 6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: { //LOS SKINS PARA EL EQUIPO 3
//TU FUNCION PARA EL EQUIPO 3
}
}
}
//ETC...
}
return true;
}
AddPlayerClass(285,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1); // Del 285
AddPlayerClass(286,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);
AddPlayerClass(287,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);
AddPlayerClass(288,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1); // Hasta el 288
AddPlayerClass(108,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1); // Del 108
AddPlayerClass(109,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);
AddPlayerClass(110,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);
AddPlayerClass(111,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1); // Hasta el 111
public OnPlayerRequestClass(playerid, classid)
{
if(classid >= 285 && classid <= 288) // Aquн detecta los Skin's del '285' hasta el '288'
{
GameTextForPlayer(playerid,"~h~~g~Equipo 1",5000,6);
}
else if(classid >= 108 && classid <= 111) // Aquн detecta los Skin's del '108' hasta el '111'
{
GameTextForPlayer(playerid,"~r~Equipo 2",5000,6);
}
return 1;
}
Por ejemplo, aсades los Skin's:
pawn Код:
pawn Код:
pawn Код:
A eso te refieres?. |
public OnGameModeInit(){
AddPlayerClass(285,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 0
AddPlayerClass(286,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 1
AddPlayerClass(287,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 2
AddPlayerClass(288,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 3
return 1;
}
public OnPlayerRequestClass(playerid, classid){
if(classid >= 0 && classid <= 3){
SendClientMessage(playerid, -1, "Esto sin ningъn Problema debe pasar!");
}
return 1;
}
Lo que hiciste no tiene sentido alguno ._. a no ser que use GetPlayerSkin Lolazo
No tiene nada que ver! pawn Код:
|
public OnGameModeInit(){
AddPlayerClass(285,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 0
AddPlayerClass(286,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 1
AddPlayerClass(287,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 2
AddPlayerClass(288,1285.8182,-1349.8336,13.5676,95.4816,0,0,0,0,-1,-1);// classid = 3
return 1;
}
public OnPlayerRequestClass(playerid, classid){
if(classid >= 0 && classid <= 3){
SendClientMessage(playerid, -1, "Esto sin ningъn Problema debe pasar! [Parka]");
}
if(classid >= 285 && classid <= 288){
SendClientMessage(playerid, -1, "Esto sin ningъn Problema debe pasar! [EnzoMetlc]");
}
return 1;
}