[Pedido] Comando pra adm
#5

Mais fбcil Vc usar sscanf + zcmd.

Base:
pawn Code:
CMD:setcar(playerid, params[])
{
     new id, car, cor[2];
     If(!IsPlayerAdmin(playerid)) return 1;
     If(sscanf(params, "uinn", id, car,  cor[0], cor[1])) return 1;
     If(!IsPlayerConnected(id)) return 1;    
if(car >= 400 && car <= 611){
* * * * if(CriarVeiculoPlayer(playerid,id, car, cor[0], cor[1])){
* * * * * * SendClientMessage(playerid, verde, "[Info-Insano]: Veiculo Criado e Salvo com sucesso!");
* * * * * * new msg[256];
* * * * * * format(msg,256,"[Info-RedBull]: O Administrador %s Criou Um Veiculo Exclusivo Para Vocк!",PlayerNome(playerid));
* * * * * * SendClientMessage(id, verde, msg);
* * * * * * }else{
* * * * * * SendClientMessage(playerid, verde, "[Info-Insano]: Erro ao criar o veiculo!");
* * * *
* * * * }else{
* * * * SendClientMessage(playerid, vermelho, "[Info-Insano]: Modelo ID Incorreto! (400-611)");
}
* * * * return 1;
* * }
Cуdigo mal indentificado e pode conter erros, foi feito no tlm.
Reply


Messages In This Thread
Comando pra adm - by iD4N0N3_.x[X]x - 23.03.2014, 20:36
Re: Comando pra adm - by VeNuZ_ - 23.03.2014, 20:46
Re: Comando pra adm - by iD4N0N3_.x[X]x - 23.03.2014, 20:58
Re: Comando pra adm - by Douglas_prt - 23.03.2014, 21:01
Re: Comando pra adm - by VeNuZ_ - 23.03.2014, 21:28
Re: Comando pra adm - by iD4N0N3_.x[X]x - 23.03.2014, 21:46
Re: Comando pra adm - by VeNuZ_ - 23.03.2014, 21:54
Re: Comando pra adm - by iD4N0N3_.x[X]x - 23.03.2014, 22:04
Re: Comando pra adm - by VeNuZ_ - 23.03.2014, 22:05
Re: Comando pra adm - by focaximubh - 23.03.2014, 22:07
Re: Comando pra adm - by iD4N0N3_.x[X]x - 23.03.2014, 22:14
Re: Comando pra adm - by iD4N0N3_.x[X]x - 23.03.2014, 22:17
Re : Comando pra adm - by Dieguinho - 24.03.2014, 00:07
Re: Comando pra adm - by iD4N0N3_.x[X]x - 24.03.2014, 00:55
Re : Re: Comando pra adm - by Dieguinho - 24.03.2014, 01:37

Forum Jump:


Users browsing this thread: 1 Guest(s)