[Duda simple] Formato Nombre_Apellido
#3

pawn Код:
CMD:y(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "Porfavor, use /y (Texto). Ejemplo: /y agarra una piedra del suelo.");
    new str[124], Float:pPos[3], Nick[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
    GetPlayerName(playerid, Nick, sizeof(Nick));
    format(str, sizeof(str), " * %s %s", Nick, params);
    for (new i; i <GetMaxPlayers(); i++)
    {
        if (IsPlayerInRangeOfPoint(i, 11, pPos[0], pPos[1], pPos[2]))
        {
            SendClientMessage(i, 0x00FFB7FF, str);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[Duda] Poner espacio en un comando - by Kryzis - 28.08.2013, 03:27
Respuesta: [Duda simple] Formato Nombre_Apellido - by JustBored - 28.08.2013, 03:37
Respuesta: [Duda simple] Formato Nombre_Apellido - by Swedky - 28.08.2013, 03:38
Respuesta: [Duda simple] Formato Nombre_Apellido - by Kryzis - 28.08.2013, 03:47
Respuesta: [Duda simple] Formato Nombre_Apellido - by OTACON - 28.08.2013, 13:07
Respuesta: [Duda simple] Formato Nombre_Apellido - by Kryzis - 30.08.2013, 19:10

Forum Jump:


Users browsing this thread: 1 Guest(s)