[DUV]alguem explica aki
#1

bom eu queria saber como setar isto aki so para admґs que estejam logador na rcon


//========================arena===================== ============================
Quote:

if(strcmp(cmdtext,"/arena", true)==0)
{
new M[128];
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1211.5221,2798.3796,10.8203) ;
GameTextForPlayer(playerid,"Bem Vindo a Arena!", 5000, 5);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,26,9999);
GivePlayerWeapon(playerid,31,9999);
GivePlayerWeapon(playerid,24,9999);
GivePlayerWeapon(playerid,32,9999);
SetPlayerArmour(playerid,100);
SetPlayerHealth(playerid,100);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(M, sizeof(M), "AdmCmd:*** %s foi para arena!", pname);
SendClientMessageToAll(0xFFFFFFAA, M);
return 1;
}

e no /save da onde eu retiro este id


como retiro istoaki esses numeros
SetPlayerPos(playerid,1211.5221,2798.3796,10.8203) ;

daqui
AddPlayerClass(101,1228.8486,-1328.1866,14.0797,87.5043,0,0,0,0,0,0); //
Reply
#2

facilll pra colca so pra adm e o /save nun tem como so tem com os ids

if(strcmp(cmdtext,"/arena", true)==0)
{
if(IsPlayerAdmin(playerid)){//Somente para Admins s no /rcon
new M[128];
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1211.5221,2798.3796,10.8203) ;
GameTextForPlayer(playerid,"Bem Vindo a Arena!", 5000, 5);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,26,9999);
GivePlayerWeapon(playerid,31,9999);
GivePlayerWeapon(playerid,24,9999);
GivePlayerWeapon(playerid,32,9999);
SetPlayerArmour(playerid,100);
SetPlayerHealth(playerid,100);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(M, sizeof(M), "AdmCmd:*** %s foi para arena!", pname);
SendClientMessageToAll(0xFFFFFFAA, M);
return 1;
}

Reply
#3

pawn Код:
if(strcmp(cmdtext,"/arena", true)==0)
  {
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"Vocк nгo й admin.");
    new M[128];
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1211.5221,2798.3796,10.8203);
    GameTextForPlayer(playerid,"Bem Vindo a Arena!", 5000, 5);
    GivePlayerWeapon(playerid,4,1);
    GivePlayerWeapon(playerid,26,9999);
    GivePlayerWeapon(playerid,31,9999);
    GivePlayerWeapon(playerid,24,9999);
    GivePlayerWeapon(playerid,32,9999);
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(M, sizeof(M), "AdmCmd:*** %s foi para arena!", pname);
   SendClientMessageToAll(0xFFFFFFAA, M);
   return 1;
  }

AddPlayerClass(SKIN,X,Y,Z,ANGLE,WEAPON1,AMMO1,WEAP ON2,AMMO2,WEAPON3,AMMO3);
AddPlayerClass(101,1228.8486,-1328.1866,14.0797,87.5043,0,0,0,0,0,0); //

SetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,1228.8486,-1328,1866,14.0797);

De nada
Reply
#4

muito abrigado aos dois isso foi de grande ajuda
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)