20.06.2010, 12:59
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
alguien me puede ayudarr?
Gracias de antemano
|
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; } } |
|
Originally Posted by Rat_
donde pongo eso??
|
|
Originally Posted by ConecCionMex
Quote:
|

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.
|
Originally Posted by MemoX
debes ponerlo con tu sistema de administracion.
|
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.
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;
}
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;
}
}