07.07.2011, 15:58
(
Последний раз редактировалось dPlaYer_; 07.07.2011 в 16:28.
)
Sou Novo na Area Panwo e to aprendendo ainda a criar cmd's.. + Ja sei o basico ;p
Meu GM EH o Do Brazillian Rpg..
TiPo o comando q eu fiz eh esse '-' Peguei do cmd /prender e Editei e vai normal .. so quero aumentar o tempo!
Meu GM EH o Do Brazillian Rpg..
TiPo o comando q eu fiz eh esse '-' Peguei do cmd /prender e Editei e vai normal .. so quero aumentar o tempo!
Код:
if(strcmp(cmd, "/prisaoe", true) == 0) {
if(prendeu[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Aguarde Um Pouco Para prender Novamente");
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "aAdmin") == 1){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "/prisaoe [id]");
return 1;
}
plid = strval(tmp);
if(!IsPlayerConnected(plid)){
SendClientMessage(playerid, Vermelho, "(ERRO) Jogador nгo conectado.");
return 1;
} else {
if(GetDistanceBetweenPlayers(plid,playerid) < 10){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
format(string, sizeof(string), "O Admin %s te colocou na Solitбria Por 5 Minutos.", aname);
SendClientMessage(plid, Blue, string);
SetPlayerPos(plid, 263.8820,77.4002,1001.0391);
SetPlayerInterior(plid, 6);
SetPlayerHealth(plid, 99999);
ResetPlayerWeapons(plid);
dini_IntSet(file2, "Preso", 1);
SendClientMessage(playerid, 0x8C8CFFAA, "(AdmiCMD) Preso com sucesso.");
prendeu[playerid] = 1;
preso[plid] = 1;
TogglePlayerControllable(plid, 1);
return 1;
} else {
SendClientMessage(playerid,Vermelho," Chegue mais perto para Prender!");
return 1;
}
}
} else {
SendClientMessage(playerid,Vermelho," Apenas Admins Podem Fazer Isto!");
return 1;
}
}

