C:\Users\Admin\Desktop\GM 2015\samp MPH\filterscripts\ladmin4v2.pwn(4506) : error 010: invalid function or declaration |
dcmd_adminarea2(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1) {
CMDMessageToAdmins(playerid,"ADMINAREA2");
SetPlayerPos(playerid, 2108.967041, 1433.100585, 10.820312);
SetPlayerFacingAngle(playerid, 274.830871);}
return GameTextForPlayer(playerid,"Bem Vindo Admin!",1000,3);
} else return SendClientMessage(playerid,red,"[ERRO]: Voce deve ser um administrador para usar este comando");
}
dcmd_adminarea2(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1) {
CMDMessageToAdmins(playerid,"ADMINAREA2");
SetPlayerPos(playerid, 2108.967041, 1433.100585, 10.820312);
SetPlayerFacingAngle(playerid, 274.830871);}
return GameTextForPlayer(playerid,"Bem Vindo Admin!",1000,3);
}
dcmd_adminarea2(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1) {
CMDMessageToAdmins(playerid,"ADMINAREA2");
SetPlayerPos(playerid, 2108.967041, 1433.100585, 10.820312);
SetPlayerFacingAngle(playerid, 274.830871);}
return else GameTextForPlayer(playerid,"Bem Vindo Admin!",1000,3);
}
dcmd_adminarea2(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid,red,"[ERRO]: Voce deve ser um administrador para usar este comando"); CMDMessageToAdmins(playerid,"ADMINAREA2"); SetPlayerPos(playerid, 2108.967041, 1433.100585, 10.820312); SetPlayerFacingAngle(playerid, 274.830871); return GameTextForPlayer(playerid,"Bem Vindo Admin!",1000,3); }
dcmd_adminarea2(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] < 1)
return SendClientMessage(playerid,red,"[ERRO]: Voce deve ser um administrador para usar este comando");
CMDMessageToAdmins(playerid,"ADMINAREA2");
SetPlayerPos(playerid, 2108.967041, 1433.100585, 10.820312);
SetPlayerFacingAngle(playerid, 274.830871);
GameTextForPlayer(playerid,"Bem Vindo Admin!",1000,3);
return 1;
}
if(PlayerInfo[playerid][Level] >= 1) {
// comando aqui
} else return 0;
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success){ SendClientMessage(playerid,-1, "{FF0000}Comando invalido, use /comandos para saber todos os comandos!"); return 1; }
return 1;
}
dcmd_adminarea2(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)return SendClientMessage(playerid, -1, "[ERRO]: Voce deve ser um administrador para usar este comando");
{
CMDMessageToAdmins(playerid, "ADMINAREA2");
SetPlayerFacingAngle(playerid, 274.830871);
SetPlayerPos(playerid, 2108.967041, 1433.100585, 10.820312);
GameTextForPlayer(playerid, "Bem Vindo Admin!", 1000, 3);
}
return 1;
}