Ayudaa!
#1

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
Reply
#2

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 ¬¬
Reply
#3

donde pongo eso??
Reply
#4

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

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.
Reply
#6

debes ponerlo con tu sistema de administracion.
Reply
#7

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.
Reply
#8

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;
}
Reply
#9

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
Reply
#10

siguen dando los mismos errores...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)