[Ajuda] veiculo
#1

glr to precisando de uma ajuda no meu sv quando eu pego um carro e outro admin (que esta longe) cria tbm o carro dos outros somem e so o dele fica vou ta postando o code aqui pra vcs verem mt obrigado quem ajudar

PHP код:
if(strcmp(cmd"/cv"true) == 0)
{
    if(
pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == 5) {
  new 
plid;
        new 
Float:X,Float:Y,Float:Z,Float:Angle;
  
tmp strtok(cmdtextidx);
            if(!
strlen(tmp)) {
            
SendClientMessage(playeridVermelho"| ERRO | Digite: /cv [id-do-caro]");
            return 
1;
        }
     
plid strval(tmp);
    if(
plid==594) {
    
SendClientMessage(playeridVermelho"| ERRO | ID de carro Proibido!");
    return 
1;
        }
        if(
IsPlayerConnected(playerid)) {
                if(
plid >= 400 && plid <= 611) {
                if(
carroadmin[playerid] != -1DestroyVehicle(carroadmin[playerid]);
                
GetPlayerPos(playerid,X,Y,Z);
                
GetPlayerFacingAngle(playerid,Angle);
                
carroadmin[playerid] = CreateVehicle(plidXYZAngle, -1, -1120000);
                
SetVehicleNumberPlate(carroadmin[playerid], "RLNE-Admin");
                
PutPlayerInVehicle(playerid,carroadmin[playerid],0);
                if(
GetPlayerInterior(playerid))
                
LinkVehicleToInterior(carroadmin[playerid],GetPlayerInterior(playerid));
                
format(stringsizeof(string), "| RLNE-Admin | Vocк criou o veнculo {FFFFFF}'{0CB80C}%s{FFFFFF}' {13A9F6}ID {FFFFFF}'{0CB80C}%d{FFFFFF}' !"PlayerVehicle[GetVehicleModel(GetPlayerVehicleID(playerid))-400],plid);
                
SendClientMessage(playeridocdstring);
                
SendClientMessage(playeridocd"| INFO | Ao sair do veнculo ele serб automaticamente deletado!");
                
cVehicle[playerid] = true;
                return 
1;
            }
                else {
                
SendClientMessage(playeridVermelho"| ERRO | ID invбlido | ID's = 400-611");
                return 
1;
            }
        }
    }

Reply


Messages In This Thread
veiculo - by Mackanor - 21.02.2018, 14:26
Re: veiculo - by AdrianoStk - 22.02.2018, 02:34
Re: veiculo - by Santso - 23.02.2018, 00:56

Forum Jump:


Users browsing this thread: 1 Guest(s)