Escudo -
Delete_ - 01.05.2011
Preciso de um escudo pros gates do meu servidor de tdm
se alguem souber o script ou tiver o fs ficarei muito grato.
Re: [PEDIDO] Escudo -
Jorge_Hard - 01.05.2011
pawn Код:
new Equipamentos[MAX_PLAYERS];
pawn Код:
if(!strcmp(cmdtext,"/escudo",true))
{
if(IsACop(playerid)) // << ORg escolhida a minha e isacop
{
if(Equipamentos[playerid] == 1)
{
RemovePlayerAttachedObject(playerid,3);
Equipamentos[playerid] = 0;
return 1;
}
if(Equipamentos[playerid] == 0)
{
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SendClientMessage(playerid,COR,"Escudo Ativado !"); //Troque a COR por alguma cor do teu serve
Equipamentos[playerid] = 1;
return 1;
}
}
else
{
SendClientMessage(playerid,COR,"Vocк nгo й um COP.");
}
return 1;
}
Re: [PEDIDO] Escudo -
[AF]Junior - 01.05.2011
Esse й um code que achei no meu GM, portanto nгo sei quem criou. Sу por em um comando.
pawn Код:
if(GetPVarInt(playerid, "Escudo") == 10)
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
RemovePlayerAttachedObject(playerid,3);
RemovePlayerAttachedObject(playerid,4);
SendClientMessage(playerid,COLOR_RED,"Vocк retirou o seu escudo!");
SetPVarInt(playerid, "Escudo", 0);
}
else if(GetPVarInt(playerid, "Escudo") != 10)
{
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
SendClientMessage(playerid,COLOR_RED,"Vocк colocou um escudo!");
SetPVarInt(playerid, "Escudo", 10);
Re: [PEDIDO] Escudo -
JonathanFeitosa - 01.05.2011
Код:
if(!strcmp(cmdtext,"/escudo",true))
{
SetPlayerAttachedObject(playerid,1,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,2,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
return 1;
}
if(!strcmp(cmdtext,"/desequipar",true))
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
return 1;
}
Fiz um Pequeno Comando, Basta Com Esse, Criar o Seu Comando do Geito Que Vocк Quiser.
Re: [PEDIDO] Escudo -
Shadoww5 - 01.05.2011
Aprenda a usar o
search !!
Re: [PEDIDO] Escudo -
Macintosh - 01.05.2011
Aff,
1 cara jб nгo postou?
Pra que postarem mais? pqp fala sйrio hein.
@Topic
- use o search na prуxima vez cara.
Re: [PEDIDO] Escudo -
Shadoww5 - 01.05.2011
So pra ganharem um post no perfil. ¬¬'
Re: [PEDIDO] Escudo -
Delete_ - 01.05.2011
vlw ae
Re: [PEDIDO] Escudo -
Katros - 01.05.2011
Post no perfil?
Re: [PEDIDO] Escudo -
dEvasT._ - 24.07.2012
Tbm tenho o meu gm original de TDM...
Coloca isso nas armas dos gates ao spawnar tipo:
public OnPlayerSpawn(playerid)
{
else if(armas[playerid] == 3)
{
ResetPlayerWeapons(playerid); // essas armas sгo dos gates ao spawnar..
GivePlayerWeapon(playerid, 31, 450);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 22, 50);
GivePlayerWeapon(playerid, 3, 1);
GivePlayerWeapon(playerid, 16, 5);
GivePlayerWeapon(playerid, 27, 90); // acresenta essas linhas abaixo:
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.0 5,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0. 0,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0 .0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0 ,-0.11,0.0,-90.0,90.0);
}
// Seja Feliz Conheзo Seu Mata-Mata CSF!