01.05.2011, 05:08
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);