04.03.2010, 17:27
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;
}
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;
}