SA-MP Forums Archive
Ayudaa! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Ayudaa! (/showthread.php?tid=155962)



Ayudaa! - RatHack - 20.06.2010

Hola, ando buscando un code para hacer que un skin sea solo para administradores que tengan mas de level 2.

alguien me puede ayudarr?

Gracias de antemano


Re: Ayudaa! - MedinaRockz - 20.06.2010

Quote:

if(GetPlayerSkin(playerid) == 0 || GetPlayerSkin(playerid) == 257 || GetPlayerSkin(playerid) == 269)
{
if(PlayerInfo[playerid][Level] == 0)
{
SendClientMessage(playerid, 0xFF0000FF, "[[InfO:]] Este Skin es solo para Admins");
SetPlayerHealth(playerid,0);
return 0;
}
}

Rojo: ID de los skins
Amarillo: Nivel del Admin

Tanto te cuesta buscar? si te fijas un poco mas abjo ahy un post perfectamente igual ¬¬


Re: Ayudaa! - RatHack - 20.06.2010

donde pongo eso??


Re: Ayudaa! - ConecCionMex - 20.06.2010

Quote:
Originally Posted by Rat_
donde pongo eso??
¬¬ OnPlayerSpawn


Re: Ayudaa! - RatHack - 20.06.2010

Quote:
Originally Posted by ConecCionMex
Quote:
Originally Posted by Rat_
donde pongo eso??
¬¬ OnPlayerSpawn
gracias tioss

podeis cerrar tema

pero me a un error:

Код:
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(128) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(131) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(131) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(132) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(132) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(133) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(133) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(872) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(872) : warning 215: expression has no effect
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(872) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(872) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\gamemodes\TClanServ.pwn(872) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Ayudaa! - MemoX - 20.06.2010

debes ponerlo con tu sistema de administracion.


Re: Ayudaa! - RatHack - 20.06.2010

Quote:
Originally Posted by MemoX
debes ponerlo con tu sistema de administracion.
Me siguen dando esos errores..

Код:
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\LuxAdmin.pwn(792) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\LuxAdmin.pwn(792) : warning 215: expression has no effect
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\LuxAdmin.pwn(792) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\LuxAdmin.pwn(792) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\LuxAdmin.pwn(792) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Ayudaa! - ConecCionMex - 20.06.2010

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(GetPlayerSkin(playerid) == 0 || GetPlayerSkin(playerid) == 257 || GetPlayerSkin(playerid) == 269 && PlayerInfo[playerid][Level] == 0){
    SendClientMessage(playerid, 0xFF0000FF, "ERROR: Este Skin esta reservado solo para admins");
    return 0;
  }
  return 1;
}



Re: Ayudaa! - MrDeath537 - 20.06.2010

pawn Код:
if(GetPlayerSkin(playerid) == 0 || GetPlayerSkin(playerid) == 257 || GetPlayerSkin(playerid) == 269)
{
  if(!IsPlayerAdmin(playerid))
  {
    SendClientMessage(playerid, 0xFF0000FF, "[[InfO:]] Este Skin es solo para Admins");
    SetPlayerHealth(playerid,0);
    return 0;
  }
}

Eso limita los skins solo para admins RCON


Re: Ayudaa! - RatHack - 21.06.2010

siguen dando los mismos errores...