Jump to content

Question

Posted

Nick : w3b

Problema : Am o problema cu /spec , cand playerul este intr-o masina si dau /spec pe el se vede in interiorul masinii nush dc , cum fac sa se vada normal ? Asa mi se vede mie cand dau spec http://img.plici.ro/image/B4 si asa ar trebui sa arate http://img.plici.ro/image/Bp

Errori : nu

Ai incercat sa rezolvi singur ?: Da dar nu am reusit

Linii script:[pawn]if(strcmp(cmd, "/spec", true) == 0)

{

if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spectate [playerid]");

return 1;

    }

    specplayerid = strval(tmp);

    if(!IsPlayerConnected(specplayerid)) {

    SendClientMessage(playerid, COLOR_RED, "Acest player nu este activ");

return 1;

    }

tmp = strtok(cmdtext, idx);

if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)

{

TogglePlayerSpectating(playerid, 1);

PlayerSpectatePlayer(playerid, specplayerid);

SetPlayerInterior(playerid,GetPlayerInterior(specplayerid));

gSpectateID[playerid] = specplayerid;

gSpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;

    return 1;

}

else

{

SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti aceasta comanda");

}

}

}

    return 1;

}[/pawn]

2 answers to this question

Recommended Posts

Posted

Ca sa eviti treaba asta, verifici daca playerul este intr-o masina, si daca este, in loc de PlayerSpectatePlayer folosesti PlayerSpectateVehicle.

http://wiki.sa-mp.com/wiki/PlayerSpectateVehicle

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.