27.12.2011, 15:53
Alguem pode me passar um comando de /tapa /tapao e /fogo eu nao consegui por que o gm meu й dividido em includes
por favor me ajude
por favor me ajude
public OnPlayerCommandText
CMD:tapa(playerid, params[])
{
new ID;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й administrador");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /tapa [ID]");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+10);
return 1;
}
CMD:tapao(playerid, params[])
{
new ID;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й administrador");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /tapao [ID]");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+30);
return 1;
}
CMD:fogo(playerid, params[])
{
new ID;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й administrador");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /fogo [ID]");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
CreateExplosion(Pos[0], Pos[1], Pos[2], 9, 5.0);
return 1;
}
if (APlayerData[playerid][PlayerLevel] >= 2)
CMD:fogo(playerid, params[])
{
if (APlayerData[playerid][PlayerLevel] < 2)
return SendClientMessage(playerid,-1,"Vocк nгo pode usar este comando.");
new ID;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й administrador");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /fogo [ID]");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
CreateExplosion(Pos[0], Pos[1], Pos[2], 9, 5.0);
return 1;
}
if(!IsPlayerAdmin(playerid))
CMD:fogo(playerid, params[])
{
new ID;
if(APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1, "Vocк nгo й administrador level 2.");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /fogo [ID]");
if(!IsPlayerConnect(ID)) return SendClientMessage(playerid, -1, "Este jogador nгo estб conectado.");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
CreateExplosion(Pos[0], Pos[1], Pos[2], 9, 5.0);
return 1;
}
CMD:tapao(playerid, params[])
{
new ID;
if(APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1, "Vocк nгo й administrador level 2.");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /tapao [ID]");
if(!IsPlayerConnect(ID)) return SendClientMessage(playerid, -1, "Este jogador nгo estб conectado.");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+30);
return 1;
}
CMD:tapa(playerid, params[])
{
new ID;
if(APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1, "Vocк nгo й administrador level 2.");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Use: /tapa [ID]");
if(!IsPlayerConnect(ID)) return SendClientMessage(playerid, -1, "Este jogador nгo estб conectado.");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+10);
return 1;
}