22.02.2010, 14:13
hola men tengo una duda me baje un fs de db le cambie unas tonteras y error me podrias decir como tendria que quedar paraa arreglarlos porque ustedes son capos con estode pwn yo entiendo pocito jaja miren
Cуdigo:
#include <a_samp>
//=========================[Colores]=========================//
#define amarillo 0xFFE700FF
//==========================[NEWs]===========================//
new driveby = 0;//cambia el 0 por un 1 para hacer que este desactivado al iniciar este FS
new arma[200];
new municion[200];
//================================================== =========//
public OnFilterScriptInit()
{
print("\n+=========================+");
print("| [FS]Anti-dribeby |");
print("| by |");
print("| Gian |");
print("+=========================+\n");
return 1;
}
public OnFilterScriptExit()
{
print("\n+=========================+");
print("| [FS]Anti-dribeby |");
print("| by |");
print("| Gian |");
print("+=========================+\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/db",true)==0)
{
if(IsPlayerAdmin(playerid))
{
if(driveby == 0)
{
driveby = 1;
SendClientMessage(playerid,amarillo,"Anti-drive by DESACTIVADO.Usa /db para volver a activarlo");
}
else
{
driveby = 0;
SendClientMessage(playerid,amarillo,"Anti-drive by ACTIVADO.Usa /db para desactivarlo");
}
}
return 1;
}
return 0;
}
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == == PLAYER_STATE_PASSENGER)
{
if(driveby == 0)
{
GetPlayerWeaponData(playerid,4,arma[playerid],municion[playerid]);
GivePlayerWeapon(playerid,arma[playerid],-municion[playerid]);
}
}
if(newstate == PLAYER_STATE_DRIVER || newstate == == PLAYER_STATE_PASSENGER)
{
if(driveby == 0)
{
GivePlayerWeapon(playerid,arma[playerid],municion[playerid]);
}
}
return 0;
}
Cуdigo:
#include <a_samp>
//=========================[Colores]=========================//
#define amarillo 0xFFE700FF
//==========================[NEWs]===========================//
new driveby = 0;//cambia el 0 por un 1 para hacer que este desactivado al iniciar este FS
new arma[200];
new municion[200];
//================================================== =========//
public OnFilterScriptInit()
{
print("\n+=========================+");
print("| [FS]Anti-dribeby |");
print("| by |");
print("| Gian |");
print("+=========================+\n");
return 1;
}
public OnFilterScriptExit()
{
print("\n+=========================+");
print("| [FS]Anti-dribeby |");
print("| by |");
print("| Gian |");
print("+=========================+\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/db",true)==0)
{
if(IsPlayerAdmin(playerid))
{
if(driveby == 0)
{
driveby = 1;
SendClientMessage(playerid,amarillo,"Anti-drive by DESACTIVADO.Usa /db para volver a activarlo");
}
else
{
driveby = 0;
SendClientMessage(playerid,amarillo,"Anti-drive by ACTIVADO.Usa /db para desactivarlo");
}
}
return 1;
}
return 0;
}
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == == PLAYER_STATE_PASSENGER)
{
if(driveby == 0)
{
GetPlayerWeaponData(playerid,4,arma[playerid],municion[playerid]);
GivePlayerWeapon(playerid,arma[playerid],-municion[playerid]);
}
}
if(newstate == PLAYER_STATE_DRIVER || newstate == == PLAYER_STATE_PASSENGER)
{
if(driveby == 0)
{
GivePlayerWeapon(playerid,arma[playerid],municion[playerid]);
}
}
return 0;
}