public Armadura(playerid) // by [GuN]Nemesis[DN] { new Float:armour[MAX_PLAYERS]; GetPlayerArmour(playerid, armour[playerid]); if( armour[playerid] > 0.0 ) { SetPlayerAttachedObject(playerid, 1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//armadura SetPlayerAttachedObject(playerid, 2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//elmo SetPlayerAttachedObject(playerid, 3, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);// mascara } else if( armour[playerid] == 0.0 ) { RemovePlayerAttachedObject(playerid,1); RemovePlayerAttachedObject(playerid,2); RemovePlayerAttachedObject(playerid,3); } return 1; }
public Saco(playerid) // By [GuN]Nemesis[DN] { new saco; if(GetPlayerCash(playerid) > 50000) { saco = SetPlayerAttachedObject( playerid, saco, 1550, 1, 0.024558, -0.279748, -0.060589, 6.105677, 137.291320, 147.132202, 1.019888, 1.000000, 1.000000 ); } else if(GetPlayerCash(playerid) < 50000) { RemovePlayerAttachedObject(playerid, saco); } return 1; }
new armour[MAX_PLAYERS],saco[MAX_PLAYERS];
public Armadura(playerid) // by [GuN]Nemesis[DN]
{
GetPlayerArmour(playerid, armour[playerid]);
if( armour[playerid] > 0)
{
SetPlayerAttachedObject(playerid, 1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//armadura
SetPlayerAttachedObject(playerid, 2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//elmo
SetPlayerAttachedObject(playerid, 3, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);// mascara
}
else if( armour[playerid] == 0)
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
RemovePlayerAttachedObject(playerid,3);
}
return 1;
}
public Saco(playerid) // By [GuN]Nemesis[DN]
{
if(GetPlayerCash(playerid) > 50000)
{
saco[playerid] = SetPlayerAttachedObject( playerid, saco, 1550, 1, 0.024558, -0.279748, -0.060589, 6.105677, 137.291320, 147.132202, 1.019888, 1.000000, 1.000000 );
}
else if(GetPlayerCash(playerid) < 50000)
{
RemovePlayerAttachedObject(playerid, saco[playerid]);
}
return 1;
}
Saco(playerid);
Armadura(playerid);
coloque na sua OnPlayerUpdate(playerid)
pawn Код:
pawn Код:
|
isto nгo vai travar o gm dele, se isso fosse travar o gm o GetPlayerFPS que o manolo lб fez travaria o gm, o que nгo aconteзe.
|
Se vocк acha que isso nгo AJUDARБ e BASTANTE para travar o Gm dele, tem muito o que aprender ainda. ^^
|
OnGameModeInit()
{
print("AA");
qantos(10000000);
}
stock qantos(a)
{
new g;
while(g <= a)
{
if(g == 500) g=0;
g++;
}
return 1;
}
Se vocк acha que isso nгo AJUDARБ e BASTANTE para travar o Gm dele, tem muito o que aprender ainda. ^^
|
Sim mas sу isso nгo vai travar o gm, aliбs para travar um GM na OnPlayerUpdate precisa de muita coisa, veja por exemplo o deadly combinations A/D e de uma olhada na OnPlayerUpdate dele.
|