27.10.2010, 23:52
La venho falar que eu estou a desligar dessa parte do forum, por alguns motivos pessoais e so vou vim aquir para postar alguns dos meus trabalhos
veja tudo no video abaixo :
[ame]http://www.youtube.com/watch?v=8e8I75rvJF0[/ame]
____________________
♦Comandos :
☻/criartapete
☻/deletartapete
____________________
Bem simples
Caso aja bug's me falem que vou arrumar.
veja tudo no video abaixo :
[ame]http://www.youtube.com/watch?v=8e8I75rvJF0[/ame]
____________________
♦Comandos :
☻/criartapete
☻/deletartapete
____________________
Bem simples
Caso aja bug's me falem que vou arrumar.
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#define TireDano(%1,%2,%3,%4) %1 | (%2 << 1) | (%3 << 2) | (%4 << 3)
new
Tapete,
Float:xx,
Float:yy,
Float:zz;
forward
PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward
Pneu(playerid);
public
PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid)) {
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
// printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) {
return 1;
}
}
return 0;
}
public
OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Tapede Load By: [FeK]Higor");
print("--------------------------------------\n");
SetTimer("Pneu",199,1);
return 1;
}
public
Pneu(playerid)
{
new Dano[4];
if (IsPlayerInAnyVehicle(playerid)) {
if (PlayerToPoint(5.0, playerid,xx,yy,zz)) {
GetVehicleDamageStatus(GetPlayerVehicleID(playerid), Dano[0], Dano[1], Dano[2], Dano[3]);
UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), Dano[0], Dano[1], Dano[2], TireDano(1, 1, 1, 1));
GameTextForPlayer(playerid,"~w~Pneu Furado :)",6000,1);
}
}
}
public
OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/criartapete", cmdtext, true, 10) == 0) {
GetPlayerPos(playerid,xx,yy,zz);
Tapete = CreateObject(2899, xx, yy, zz, 0, 0,0);
GameTextForPlayer(playerid,"~w~Tapede criado :)",6000,1);
return 1;
}
if (strcmp("/deletartapete", cmdtext, true, 10) == 0) {
DestroyObject(Tapete);
GameTextForPlayer(playerid,"~w~Tapede Deletado",6000,1);
return 1;
}
return 0;
}