[Ajuda] Comando /cv
#10

pawn Код:
if(strcmp(cmd, "/cv", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
//new carro;
new Float:X,Float:Y,Float:Z,Float:Angle;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /cv [id-do-caro]");
return 1;
}
plid = strval(tmp);
if(plid==3 || plid==2 || plid==1 || plid==4 || plid==5 || plid==56 || plid==50 || plid==43 || plid==52 || plid==44|| plid==45 ){
SendClientMessage(playerid, Vermelho, "[SERVER] ID de carro Proibido!");
return 1;
}
if(IsPlayerConnected(playerid)){
if(plid >= 400 && plid <= 611){
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
new carro = CreateVehicle(plid, X, Y, Z, Angle, -1, -1, 120000);
PutPlayerInVehicle(playerid,carro,0);
if(GetPlayerInterior(playerid))
LinkVehicleToInterior(carro,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carro,GetPlayerVirtualWorld(playerid));
format(string, sizeof(string), "| INFO | Vocк criou o veнculo de id: %d", plid);
SendClientMessage(playerid, tcadm, string);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido || ID's = 400-611");
return 1;
}
}
}
}
Reply


Messages In This Thread
Comando /cv - by paulotuto - 09.12.2014, 22:50
Re: COMANDO /CV - by Whoo - 09.12.2014, 22:52
Re: COMANDO /CV - by xJasonxX - 09.12.2014, 22:56
Re: COMANDO /CV - by FStralioti - 09.12.2014, 22:57
Re: COMANDO /CV - by [BOPE]Seu._.Madruga - 09.12.2014, 23:11
Re: COMANDO /CV - by paulotuto - 10.12.2014, 00:43
Re: COMANDO /CV - by paulotuto - 10.12.2014, 00:45
Re: COMANDO /CV - by Ts3 - 10.12.2014, 00:55
Re: Comando /cv - by paulotuto - 13.12.2014, 16:28
Respuesta: Comando /cv - by AndreLuiz - 13.12.2014, 18:22
Re: Comando /cv - by paulotuto - 13.12.2014, 18:45
Re: Comando /cv - by Whoo - 13.12.2014, 19:03

Forum Jump:


Users browsing this thread: 4 Guest(s)