01.05.2011, 04:31
Preciso de um escudo pros gates do meu servidor de tdm
se alguem souber o script ou tiver o fs ficarei muito grato.
se alguem souber o script ou tiver o fs ficarei muito grato.
new Equipamentos[MAX_PLAYERS];
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;
}
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);
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; }