Pedidos de Scripts

Hola,queria pedirles el favor que me digan como creo un sistema de rangos por score con textdraw para un tdm
Gracias
Reply

Quote:
Originally Posted by Grecco
Посмотреть сообщение
Hola a todos:

Quisiera pedir un SCRIPT complejo.. espero que sepan ayudarme:

Que el script consista en que cuando entre un "Usuario nuevo" le de level 3 y 100.000 de dinero.
Oh, que complejo, que locura!

pawn Код:
//Aсade al final de OnPlayerRegister (Suponiendo que es un RP base de GF)
PlayerInfo[playerid][pLevel] = 3;
GivePlayerMoney(playerid, 100000); //Si lo  quieres en mano
PlayerInfo[playerid][pAccount] = 100000; //Si lo quieres en el banco
Reply

Quote:
Originally Posted by SuperMarioRol
Посмотреть сообщение
Oh, que complejo, que locura!

pawn Код:
//Aсade al final de OnPlayerRegister (Suponiendo que es un RP base de GF)
PlayerInfo[playerid][pLevel] = 3;
GivePlayerMoney(playerid, 100000); //Si lo  quieres en mano
PlayerInfo[playerid][pAccount] = 100000; //Si lo quieres en el banco


Uploaded with ImageShack.us

Me sale ese error al intentar compilar.. a que se deve?
Reply

Quote:
Originally Posted by Grecco
Посмотреть сообщение


Uploaded with ImageShack.us

Me sale ese error al intentar compilar.. a que se deve?
...
Se debe a que estб puesto fuera de la funciуn que te he dicho.
El forward, no es la funciуn sino "un aviso" de que esa funciуn existirб.
Busca un tutorial de pawn que hizo chaoz.

Busca otro sitio donde ponga public OnPlayerRegister(blabla)

Ahн habrб un montуn de cуdigo, baja hasta abajo del todo y debajo de fclose(hFile); ,por ejemplo, ponlo allн.
Reply

alguien tendra este fs es que lo busco pero no lo encuetro [FS] Sistema de GangWars Completo.
http://www.pawnoscripting.com/foro/v...?f=125&t=17336
Reply

les queria pedir el FS de
/ir [ID]
/bloquearmiid
/desbloquearmiid

Respondannnnnnnnnnnnnnnnnnnn:m ad::m ad:
Reply

Hola Buenas Necesito ayuda para crear un comando, El comando seria /dc(/destroycar) Uso zcmd.
Reply

Hola me gustaria si pueden ayudarme en mi GM. Estube pariendome la cabeza y como soy muy noob no doy con la solucion. Bien lo que quiero es que cuando un usuario sin registrar en la base de datos lo haga y loguee pase a la pantalla de seleccion del skin para poder elegir. Y que cuando un usuario que ya esta en la base de datos loguee spawnee en su ultima posicion y con su ultimo skin.
El codigo del GM esta aqui :http://pastebin.com/Vtu89Rgt
PD:La base de datos guarda el nє del skin y las coordenadas
Reply

Hola e estado Buscando un Anti-Spam que banee a dar Tal Ip o Kickee segun yo lo configure Alguno me Podria Dar El Codigo?. ( Yo tengo Uno Pero Detecta por . )
Reply

Alguien me puede pasar o decir como hago para que cuando un Player ponga un comando Invalido que le salga un dialog diciendo Comando Invalido... ETC.

Gracias
Reply

Quote:
Originally Posted by Nikk123
Посмотреть сообщение
Alguien me puede pasar o decir como hago para que cuando un Player ponga un comando Invalido que le salga un dialog diciendo Comando Invalido... ETC.

Gracias
Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
їCуmo cambio el "Unknown Command" que aparece cuando el comando no existe?
Muy sensillo, buscamos el callback: "OnPlayerCommandText", luego dentro del mismo y en el final fuera de los comandos encontraremos un:
pawn Код:
return 0;
Lo unico que hay que hacer es cambiarlo por:
pawn Код:
return SendClientMessage(playerid, color, "mensaje");
y ahora en vez de salir "Unknown Command" saldra nuesto mensaje.
cambia sendclientmessage por showplayerdialog
Reply

Quote:
Originally Posted by josta
Посмотреть сообщение
cambia sendclientmessage por showplayerdialog
Muchisimas gracias josta se agradece
Reply

ALGUIEN ME PUEDE DESIR SI POR LO MENOS ESISTE UN FS DE Q CUANDO ESCRIBIS MALAS PALABRAS EN EL CHAT APARESCA ESTO ***** POR EJEMPLO:
HIJO DE **** POR LO MENOS DIGNAME SI ESISTE Y SI ESISTE COMO S LLAMA Q YO LO BUSCO POR MI CUENTA
Reply

Quote:
Originally Posted by MrMegaTx
Посмотреть сообщение
ALGUIEN ME PUEDE DESIR SI POR LO MENOS ESISTE UN FS DE Q CUANDO ESCRIBIS MALAS PALABRAS EN EL CHAT APARESCA ESTO ***** POR EJEMPLO:
HIJO DE **** POR LO MENOS DIGNAME SI ESISTE Y SI ESISTE COMO S LLAMA Q YO LO BUSCO POR MI CUENTA
pawn Код:
#include <a_samp>

#define MAX_BAD_WORDS    (100)

new Words[MAX_BAD_WORDS][64], WordsCount;

public OnFilterScriptInit() //OnGameModeInit() para un GameMode
{
    new File:Fhnd, line[64];
    Fhnd = fopen("BadWords.txt", io_readwrite);
    while(fread(Fhnd, line)){
        for(new i, j=strlen(line); i<j; i++)
            if(line[i] == '\n' || line[i] == '\r')line[i] = '\0';
        strins(Words[WordsCount], line, 0);
        WordsCount++;
    }
    fclose(Fhnd);
    return 1;
}

public OnPlayerText(playerid, text[]){
    new pos;
    for(new i; i<WordsCount; i++)
        if((pos = strfind(text, Words[i], true)) != -1)
            for(new n=pos, j=(pos+strlen(Words[i])); n<j; n++)
                text[n] = '*';
    return 1;
}
Reply

@Mati: http://forum.sa-mp.com/showpost.php?...&postcount=170
Reply

Alguien me podria pasar el codigo el .pwn de que cuando tocas el claxon(la bocina) sale una rampa y despues de unos segundo desaparese xfa yo lo tenia pero no me andaba por problemas con los includes y despues que tube que formatear mi pc lo perdi y ahora no lo puedo encontrar xfa si saben
Reply

Hola, miren tengo este comando base, lo que quiero yo es que cuando alguien use este comando osea, /Ticket [ID], al otro player que le haga le quite 600$ y le Diga "Debes tener Cuidado, te han Multado, El Oficial %s te Multo por 600$", nombre del que lo multo. Como lo hago, espero que alguien me lo pueda hacer, miren tengo el cmd base con zcmd

pawn Код:
COMMAND:ticket(playerid, params[])
{
    SendAdminText(playerid, "/ticket", params);

    if (APlayerData[playerid][LoggedIn] == true)
   {
        if (APlayerData[playerid][PlayerClass] == ClassPolice)
        {


        }
    }
   return 1;
}
Desde ya muchas gracias C:
Reply

Quote:
Originally Posted by Nikk123
Посмотреть сообщение
Hola, miren tengo este comando base, lo que quiero yo es que cuando alguien use este comando osea, /Ticket [ID], al otro player que le haga le quite 600$ y le Diga "Debes tener Cuidado, te han Multado, El Oficial %s te Multo por 600$", nombre del que lo multo. Como lo hago, espero que alguien me lo pueda hacer, miren tengo el cmd base con zcmd

pawn Код:
COMMAND:ticket(playerid, params[])
{
    SendAdminText(playerid, "/ticket", params);

    if (APlayerData[playerid][LoggedIn] == true)
   {
        if (APlayerData[playerid][PlayerClass] == ClassPolice)
        {


        }
    }
   return 1;
}
Desde ya muchas gracias C:
pawn Код:
COMMAND:ticket(playerid, params[])
{
    SendAdminText(playerid, "/ticket", params);

    if (APlayerData[playerid][LoggedIn] == true)
   {
        if (APlayerData[playerid][PlayerClass] == ClassPolice)
        {
        new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
        if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, TU_COLOR, "[USO]: /ticket [id] [cantidad-multa]");
        new player1 = strval(tmp), Multa = strval(tmp2), Texto[128], nombre[MAX_PLAYER_NAME], nombre2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nombre, MAX_PLAYER_NAME);
        GetPlayerName(player1, nombre2, MAX_PLAYER_NAME);
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            format(Texto, sizeof(Texto), "Has Multado a %s con $%d", nombre2, Multa); SendClientMessage(playerid,TU_COLOR,Texto);
            if(player1 != playerid)
            {
            format(string,sizeof(string),"Debes tener Cuidado, te han Multado. El Oficial %s te Multo por $%d", nombre, Multa); SendClientMessage(player1,TU_COLOR,string);
            }
            return GivePlayerMoney(player1, -Multa);
        } else return SendClientMessage(playerid,TU_COLOR,"ERROR: El jugador no existe");
        }
    }
   return 1;
}
Reply

Quote:
Originally Posted by Treyfus
Посмотреть сообщение
pawn Код:
COMMAND:ticket(playerid, params[])
{
    SendAdminText(playerid, "/ticket", params);

    if (APlayerData[playerid][LoggedIn] == true)
   {
        if (APlayerData[playerid][PlayerClass] == ClassPolice)
        {
        new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
        if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, TU_COLOR, "[USO]: /ticket [id] [cantidad-multa]");
        new player1 = strval(tmp), Multa = strval(tmp2), Texto[128], nombre[MAX_PLAYER_NAME], nombre2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nombre, MAX_PLAYER_NAME);
        GetPlayerName(player1, nombre2, MAX_PLAYER_NAME);
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            format(Texto, sizeof(Texto), "Has Multado a %s con $%d", nombre2, Multa); SendClientMessage(playerid,TU_COLOR,Texto);
            if(player1 != playerid)
            {
            format(string,sizeof(string),"Debes tener Cuidado, te han Multado. El Oficial %s te Multo por $%d", nombre, Multa); SendClientMessage(player1,TU_COLOR,string);
            }
            return GivePlayerMoney(player1, -Multa);
        } else return SendClientMessage(playerid,TU_COLOR,"ERROR: El jugador no existe");
        }
    }
   return 1;
}
te lo agradasco por hacerlo, eso ya es mucho para mi, pero mira, me tira estos errores

Quote:

D:\The original - copia\pawno\include\PPC_PlayerCommands.inc(10) : error 017: undefined symbol "IsNumeric"
D:\The original - copia\pawno\include\PPC_PlayerCommands.inc(19) : error 017: undefined symbol "string"
D:\The original - copia\pawno\include\PPC_PlayerCommands.inc(19) : error 017: undefined symbol "string"
D:\The original - copia\pawno\include\PPC_PlayerCommands.inc(19) : error 029: invalid expression, assumed zero
D:\The original - copia\pawno\include\PPC_PlayerCommands.inc(19) : fatal error 107: too many error messages on one line

Linea 10:

pawn Код:
if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, 0xFF0000FF, "[USO]: /ticket [id] [cantidad-multa]");
linea 19:

pawn Код:
format(string,sizeof(string),"Debes tener Cuidado, te han Multado. El Oficial %s te Multo por $%d", nombre, Multa); SendClientMessage(player1,0xFF0000FF,string);
que falta?D:
Reply

Quote:
Originally Posted by Nikk123
Посмотреть сообщение
te lo agradasco por hacerlo, eso ya es mucho para mi, pero mira, me tira estos errores



Linea 10:

pawn Код:
if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, 0xFF0000FF, "[USO]: /ticket [id] [cantidad-multa]");
linea 19:

pawn Код:
format(string,sizeof(string),"Debes tener Cuidado, te han Multado. El Oficial %s te Multo por $%d", nombre, Multa); SendClientMessage(player1,0xFF0000FF,string);
que falta?D:
pawn Код:
COMMAND:ticket(playerid, params[])
{
    SendAdminText(playerid, "/ticket", params);

    if (APlayerData[playerid][LoggedIn] == true)
   {
        if (APlayerData[playerid][PlayerClass] == ClassPolice)
        {
        new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
        if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, TU_COLOR, "[USO]: /ticket [id] [cantidad-multa]");
        new player1 = strval(tmp), Multa = strval(tmp2), Texto[128], nombre[MAX_PLAYER_NAME], nombre2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nombre, MAX_PLAYER_NAME);
        GetPlayerName(player1, nombre2, MAX_PLAYER_NAME);
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            format(Texto, sizeof(Texto), "Has Multado a %s con $%d", nombre2, Multa); SendClientMessage(playerid,TU_COLOR,Texto);
            if(player1 != playerid)
            {
            format(Texto,sizeof(Texto),"Debes tener Cuidado, te han Multado. El Oficial %s te Multo por $%d", nombre, Multa); SendClientMessage(player1,TU_COLOR,string);
            }
            return GivePlayerMoney(player1, -Multa);
        } else return SendClientMessage(playerid,TU_COLOR,"ERROR: El jugador no existe");
        }
    }
   return 1;
}
y alo ultimo de tu GM o FS pon esto:

pawn Код:
stock IsNumeric(string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0') return 0;
    }
    return 1;
}
Probalo y abisame.
Reply


Forum Jump:


Users browsing this thread: 38 Guest(s)