24.11.2011, 18:03
Inicio do GM
OnPlayerConnect
Criando Interiores
pawn Code:
new NicksProibidos[][MAX_PLAYER_NAME] ={
"[ViP","[MT Lavis","[XXX Whatever","com1","com2","com3","com4","com5","com6",
"com7","com8","com9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6","lpt7","lpt8","lpt9",
"Sou_Hacker","SouHacker","Xiter","clock$","prn","nul","con","Pepe","Arnoldo","Coca_Cola","Pepsi",
"Azucar","Troll_face","CON","con","con1","Zoquete","Pacman","Batman","AquilesBrinco","ServerLixo","Papirola",
"Sou_","aux","con@lpt","oi","aux1","prn","Joao_Pereira","[BTG]","PRN","AUX","Boquete"
};
pawn Code:
new viadinho[256];
GetPlayerName(playerid,viadinho,256);
for(new i; i<sizeof(NicksProibidos); i++)
{
if(strcmp(NicksProibidos[i],viadinho,true)==0)
{
SendClientMessage(playerid,0xFFFF00AA,"SAI DAQUI SEU NB INVEJOSO! RIARIARIA!");
Ban(playerid);
}
}
Criando Interiores
pawn Code:
if(strcmp(cmdtext,"/criarinterior", true) == 0) {
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new i = 0; p < MAX_CASAS; i++)
{
format(string, sizeof(string),"/Interiores/int%d.ini", i);
if(!dini_Exists(string)){
if(IsPlayerAdmin(playerid)){
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
dini_Create(string);
dini_IntSet(string,"Int", GetPlayerInterior(playerid));
dini_FloatSet(string,"EX", X);
dini_FloatSet(string,"EY", Y);
dini_FloatSet(string,"EZ", Z);
new string2[256];
format(string2, sizeof(string2),"[INTERIOR] Vocк criou o interior '%d'.",i);
SendClientMessage(playerid,0xFFFFFFAA,string2);
return 1;
} else {
}
}
}
return 1;
}
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if(strcmp(cmd,"/cantar",true)==0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new tmp[256];
new msg[256];
strmid(tmp,cmdtext,6,strlen(cmdtext));
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000AA,"/cantar [texto]");
return 1;
} else {
format(msg,sizeof(msg),"(~) O Cantor %s canta:%s",aname,tmp);
SendClientMessageToAll(0x8AD9FFAA,msg);
return 1;
}
}else{
SendClientMessage(playerid,Vermelho,"{0099FF}(~){CCCCFF} Vocк nгo tem permissгo!");
return 1;
}
}
return 0;
}