Ortografia 10/10
Si compartes tu script con la comunidad tienes que dejar el archivo .pwn, estб en las reglas. |
Originally Posted by Choidito
Yo quisiera algo asн pero en cleo para ver quien se conecta, si alguien lo tiene paselo plz || Con l odel tema, impresionante
|
" Todos los lanzamientos que se realicen deben incluir el cуdigo fuente. Por ejemplo, estб prohibido postear un gamemode o un filterscript, sin su archivo .pwn. " |
Le copian cada movimiento a FenixZone, y encima quedу grande = feo, pero de igual forma se respeta el trabajo, sea original o no, gracias por el aporte.
|
Originally Posted by Ender_
Quote:
|
Yo no tenia ninguna intenciуn de copiar, solo hicieron el pedido con una imagen y ya. Ok.
Estoy bien entonces jajaja Saludos |
Bueno traigo este 'Fs' que habнa subido hace un tiempo, solo habнa subido el .amx por una determinada razуn..
Ahora lo traigo con el .pwn їEn que consiste? Muestra un textdraw con el skin del jugador al conectarse este. (Ver imagen para entender mбs).. Link: https://www.mediafire.com/?i28gjmddt8bo0m1 Imagen: http://imgur.com/a/J2kKf |
public OnPlayerRequestSpawn(playerid) { KillTimer(ELTIMER); cuenta[playerid][cSkin] = GetPlayerSkin(playerid); cuenta[playerid][tmpSkin] = GetPlayerSkin(playerid); SetPlayerSkin(playerid, cuenta[playerid][cSkin]); SetPlayerSkin(playerid, cuenta[playerid][tmpSkin]); cuenta[playerid][request] = REQUEST_INGRESO; if(cuenta[playerid][cAdmin]) //Esto indica que sн la variable de administrador estб seteada a un nъmero mayor que 0 ejecutarб esas funciones. { new Nombrex[MAX_PLAYER_NAME],string[25]; GetPlayerName(playerid,Nombrex,sizeof(Nombrex)); format(string,sizeof(string),"%s",Nombrex); TextDrawSetString(Conexion1,string); TextDrawSetPreviewModel(Conexion3, GetPlayerSkin(playerid)); TextDrawShowForPlayer(playerid, Conexion0); TextDrawShowForPlayer(playerid, Conexion1); TextDrawShowForPlayer(playerid, Conexion2); TextDrawShowForPlayer(playerid, Conexion3); ELTIMER = SetTimer("TIMEFIX",5000,true); } return 1; } forward TIMEFIX(playerid); public TIMEFIX(playerid) { TextDrawHideForPlayer(playerid, Conexion0); TextDrawHideForPlayer(playerid, Conexion1); TextDrawHideForPlayer(playerid, Conexion2); TextDrawHideForPlayer(playerid, Conexion3); return 1; }
new ELTIMER[MAX_PLAYERS];//defines asн public OnPlayerRequestSpawn(playerid) { cuenta[playerid][cSkin] = GetPlayerSkin(playerid); cuenta[playerid][tmpSkin] = GetPlayerSkin(playerid); SetPlayerSkin(playerid, cuenta[playerid][cSkin]); SetPlayerSkin(playerid, cuenta[playerid][tmpSkin]); cuenta[playerid][request] = REQUEST_INGRESO; for(new i; i<MAX_PLAYERS; i++) { if(cuenta[i][cAdmin]) //Esto indica que sн la variable de administrador estб seteada a un nъmero mayor que 0 ejecutarб esas funciones. { KillTimer(ELTIMER[i]); new Nombrex[MAX_PLAYER_NAME],string[25]; GetPlayerName(playerid,Nombrex,sizeof(Nombrex)); format(string,sizeof(string),"%s",Nombrex); TextDrawSetString(Conexion1,string); TextDrawSetPreviewModel(Conexion3, GetPlayerSkin(playerid)); TextDrawShowForPlayer(i, Conexion0); TextDrawShowForPlayer(i, Conexion1); TextDrawShowForPlayer(i, Conexion2); TextDrawShowForPlayer(i, Conexion3); ELTIMER[i] = SetTimer("TIMEFIX",5000,true,"i",i); } } return 1; } forward TIMEFIX(playerid); public TIMEFIX(playerid) { TextDrawHideForPlayer(playerid, Conexion0); TextDrawHideForPlayer(playerid, Conexion1); TextDrawHideForPlayer(playerid, Conexion2); TextDrawHideForPlayer(playerid, Conexion3); return 1; }