if(strcmp(cmd, \"/akna\", true) == 0) {if(gTeam[playerid] == TEAM_T_ROBBANTO){new Float:x, Float:y, Float:z; public Akna(playerid);{GetPlayerPos(playerid,x, y, z);CreateExplosion(x, y, z, 2, 7.0);}return 1;}SendClientMessage(playerid,COLOR_BROWN,\"Telepítettél egy aknát...\");} else {SendClientMessage(playerid,COLOR_RED,\"Nem vagy Robbantó osztagban!\");}return 0;}
#include <a_samp>#define TEAM_T_ROBBANTO 1new gTeam[MAX_PLAYERS];new Float:X,Float:Y,Float:Z;public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/akna\", cmdtext, true, 10) == 0){if(gTeam[playerid] == TEAM_T_ROBBANTO){ GetPlayerPos(playerid,X,Y,Z); SetTimerEx(\"AknaTimer\",10000,0,\"i\",playerid); SendClientMessage(playerid,-1,\"Az Akna 10 másodperc múlva felrobban!\");}return 1;}return 0;}forward Akna(playerid);public Akna(playerid){CreateExplosion(X, Y, Z, 2, 7.0);}
#include <a_samp>#define TEAM_T_ROBBANTO 1new gTeam[MAX_PLAYERS];new timer;new Float:XX,Float:YY,Float:ZZ;public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/akna\", cmdtext, true, 10) == 0) { if(gTeam[playerid] == TEAM_T_ROBBANTO) { GetPlayerPos(playerid,XX,YY,ZZ); timer = SetTimerEx(\"AknaTimer\",50000,0,\"i\",playerid); SendClientMessage(playerid,-1,\"Az Akna 10 másodperc múlva felrobban!\"); } return 1; } return 0;}forward Akna(playerid);public Akna(playerid){ CreateExplosion(XX, YY, ZZ, 2, 7.0); KillTimer( timer );}