- 0
Sprijin /spec
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
w3b
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]
Link to comment
Share on other sites
2 answers to this question
Recommended Posts