new neon = CreateObject(18648,0,0,0,0,0,0,100.0);
new neon1 = CreateObject(18648,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(neon, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
CMD:contar(playerid, params[])
{
#pragma unused params
um comando contar .. ai quem tiver num raio de 50 metros sei-la.. ficaria congelado... e depois de contar.... descongelaria...
return true;
}
new neon = CreateObject(18648,0,0,0,0,0,0,100.0);
new neon1 = CreateObject(18648,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(neon, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
CMD:rtunning(playerid, params[])
{
SendClientMessage(playerid,COR,"Tunning Removido!");
DestroyObject(neon);
DestroyObject(neon1);
return true;
}
C:\ABA Programas\SA-MP 0.3c R2 Windows Server\gamemodes\GMFinal.pwn(8808) : error 017: undefined symbol "neon"
C:\ABA Programas\SA-MP 0.3c R2 Windows Server\gamemodes\GMFinal.pwn(8809) : error 017: undefined symbol "neon1"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
if(strcmp(cmdtext, "/neon", true) == 0)
{
SendClientMessage(playerid,COR,"Neon Instalado!");
SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0,100.0));
SetPVarInt(playerid, "neon2", CreateObject(18648,0,0,0,0,0,0,100.0));
AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon2, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/rneon", true) == 0)
{
SendClientMessage(playerid,COR,"Neon Removido!");
DestroyObject(neon1);
DestroyObject(neon2);
return 1;
}
new Tick;
forward Tres(playerid);
forward Dois(playerid);
forward Um(playerid);
forward Congelar(playerid);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/contar", true) == 0)
{
if(GetTickCount() - Tick < 5000) return SendClientMessage(playerid, -1, "Aguarde 5 segundo para usar este comando !");
if(IsPlayerAdmin(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
if(IsPlayerInRangeOfPoint(i, 12.0, Pos[0], Pos[1], Pos[2]);
{
Tres(i);
SetTimerEx("Congelar", 4000, false, "i", i);
Tick = GetTickCount();
return 1;
}
}
}
else return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
}
return 0;
}
public Tres(playerid)
{
SetTimerEx("Dois", 1000, false, "i", playerid);
GameTextForPlayer(playerid, "~r~3", 1000, 0);
return 1;
}
public Dois(playerid)
{
SetTimerEx("Um", 1000, false, "i", playerid);
GameTextForPlayer(playerid, "~b~2", 1000, 0);
return 1;
}
public Um(playerid)
{
GameTextForPlayer(playerid, "~g~1", 1000, 0);
return 1;
}
public Congelar(playerid)
{
TooglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~y~CONGELADO !", 1000, 0);
return 1;
}
stock Tres( playerid ) { SetTimerEx( "Dois", 1000, false, "i", playerid ); return GameTextForPlayer( playerid, "~r~3", 1000, 0 ); }
stock Dois( playerid ) { SetTimerEx( "Um", 1000, false, "i", playerid ); return GameTextForPlayer( playerid, "~b~w", 1000, 0 ); }
stock Um( playerid ) return GameTextForPlayer( playerid, "~g~1", 1000, 0 );
stock Congelar( playerid ) { TooglePlayerControllable( playerid, 0 ); return GameTextForPlayer( playerid, "~y~CONGELADO !", 1000, 0 ); }
new countttt;
new timerrrrrrr;
new bool:CountStart;
CMD:contar(playerid,params[])
{
if(CountStart == true)
return SendClientMessage(playerid,-1,"(error) jб existe uma contagem em andamento.");
else
{
timerrrrrrr = SetTimerEx("Count",1000,true,"d",playerid);
countttt = 5;
}
return true;
}
forward Count(playerid);
public Count(playerid)
{
if(CountStart == false)
{
new Float:Float[3];
GetPlayerPos(playerid,Float[0],Float[1],Float[2]);
for(new x = 0; x != MAX_PLAYERS; x++)
{
if(IsPlayerInRangeOfPoint(x,50.0,Float[0],Float[1],Float[2]) && IsPlayerConnected(x)) continue;
TogglePlayerControllable(x,false);
}
CountStart = true;
}
else
{
if(countttt != 0)
{
for(new x = 0; x != MAX_PLAYERS; x++)
{
new Str[6],Float:Float[3];
GetPlayerPos(playerid,Float[0],Float[1],Float[2]);
if(IsPlayerInRangeOfPoint(x,50.0,Float[0],Float[1],Float[2]) && IsPlayerConnected(x)) continue;
format(Str,sizeof(Str),"~w~%d",countttt);
GameTextForPlayer(x,Str,1000,6);
}
countttt--;
}
else
{
for(new x = 0; x != MAX_PLAYERS; x++)
{
new Float:Float[3];
GetPlayerPos(playerid,Float[0],Float[1],Float[2]);
if(IsPlayerInRangeOfPoint(x,50.0,Float[0],Float[1],Float[2]) && IsPlayerConnected(x)) continue;
GameTextForPlayer(x,"~r~GO ~y~ GO ~b~~h~~h~GO!",1000,6);
}
KillTimer(timerrrrrrr);
}
}
return true;
}
pawn Код:
|