ayuda con fs de db
#1

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;
}
Reply


Messages In This Thread
ayuda con fs de db - by gianluccapino - 22.02.2010, 14:13
Re: ayuda con fs de db - by xenowort - 22.02.2010, 14:16
Re: ayuda con fs de db - by gianluccapino - 22.02.2010, 14:34
Re: ayuda con fs de db - by Cesar_Biker - 22.02.2010, 16:16
Re: ayuda con fs de db - by gianluccapino - 22.02.2010, 16:28
Re: ayuda con fs de db - by xenowort - 22.02.2010, 16:51
Re: ayuda con fs de db - by Miguel - 22.02.2010, 17:04
Re: ayuda con fs de db - by gianluccapino - 22.02.2010, 17:26
Re: ayuda con fs de db - by gianluccapino - 22.02.2010, 17:31
Re: ayuda con fs de db - by Zamaroht - 22.02.2010, 19:36

Forum Jump:


Users browsing this thread: 2 Guest(s)