07.05.2011, 16:24
Olб galera sou um pouco novo em mecher em pawno e queria saber como colocar um FS dentro do GM eu estou querendo colocar o fs c4 que vou postar aki agora para vcs verem para apenas os hitmans poderem usarem por favor me ajudem
Link Video do FS C4: http://www.youtube.com/watch?v=bW_pJwEiDpk#normal
Link de Download : http://solidfiles.com/d/ai2S/ <-- c4e.amx
http://solidfiles.com/d/xFK3/ <-- c4e.pwn
c4e.pwn
Obs : o ID da org dos hitmans й 8
Link Video do FS C4: http://www.youtube.com/watch?v=bW_pJwEiDpk#normal
Link de Download : http://solidfiles.com/d/ai2S/ <-- c4e.amx
http://solidfiles.com/d/xFK3/ <-- c4e.pwn
c4e.pwn
pawn Код:
#include <a_samp>
new bombas [MAX_PLAYERS];
new bomba;
new Float:X,Float:Y,Float:Z;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" C4 Explode, by andmeida10");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerSpawn(playerid)
{
bombas[playerid] = 0;
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/bomba", cmdtext, true, 10) == 0)
{
GetPlayerPos(playerid,X,Y,Z);
bomba = CreatePickup(1252,23,X,Y,Z-1,-1);
bombas[playerid]++;
SendClientMessage(playerid,0xFF00CCFF,"Bomba Implantada com sucesso, use LCtrl (Tecla de disparar) para explodir a bomba");
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_FIRE)
{
if(bombas[playerid] >= 1)
{
CreateExplosion(X,Y,Z,7,30.0);
DestroyPickup(bomba);
SendClientMessage(playerid,0xFF00CCFF,"Bomba Explodida, Missгo Cumprida");
bombas[playerid]--;
}
}
return 1;
}