SA-MP Forums Archive
[Help]Asignarle un color de nick a tal jugador - 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: [Help]Asignarle un color de nick a tal jugador (/showthread.php?tid=159619)



[Help]Asignarle un color de nick a tal jugador - GroX0r - 13.07.2010

bueno lo que quiero hacer es que cuando tal jugador entre al servidor se le cambie el color por uno ya definido, digamos que seria un tipo if

public OnPlayerConnect(playerid)
{

if (GetPlayerName(playerid, name, sizeof(name)) == '[TAG]nick')
{
SetPlayerColor(playerid, 0xAA3333AA);
}
return 1;
}



Bueno, Si Me Pudieran Ayudar A Resolver el Problema Se Los Agradecerнa...!


Re: [Help]Asignarle un color de nick a tal jugador - MrDeath537 - 14.07.2010

pawn Код:
public OnPlayerConnect(playerid)
{
    new name[24];
    GetPlayerName(playerid, name, sizeof(name));

    if(strcmp(name, "[TAG]nick", true))
    {
        SetPlayerColor(playerid, 0xAA3333AA);
    }
    return 1;
}



Respuesta: [Help]Asignarle un color de nick a tal jugador - GroX0r - 14.07.2010

Gracias Bro..! xO tenia mucho q no Abria un GM DM xD...!