15.12.2013, 12:27
Hello, when I end player spectating, I get back to class selection but I can't do anything, the screen is flashing...
Any workaround or something?
Any workaround or something?
CMD:pzu(playerid,params[])
{
new id;
if(pInfo[playerid][AdminLevel] < 1 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,RED,"Tu turi būti administratorius kad galėtum naudoti šią komandą!");
if(SpectatingPlayer[playerid] != INVALID_PLAYER_ID)
{
set.WasSpectating[playerid]=true;
TogglePlayerSpectating(playerid,false);
SendClientMessage(playerid,ORANGE,"Baigėte prižiūrėjimą!");
SpectatingPlayer[playerid] = INVALID_PLAYER_ID;
return 1;
}
if(sscanf(params,"u",id)) return SendClientMessage(playerid,RED,"Naudojimas /pzu [ŽaidėjoID/DalisVardo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,RED,"Tokio žaidėjo nėra!");
new Float:pos[3];
GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
SetPVarFloat(playerid,"Spec_X",pos[0]);
SetPVarFloat(playerid,"Spec_Y",pos[1]);
SetPVarFloat(playerid,"Spec_Z",pos[2]);
TogglePlayerSpectating(playerid,true);
SpectatingPlayer[playerid] = id;
PlayerSpectatePlayer(playerid,id);
SendClientMessage(playerid,RED,"Pradėjote priežiūrą, norėdami ją baigti rašykite /pzu");
return 1;
}
if(SpectatingPlayer[playerid] != INVALID_PLAYER_ID)
{
set.WasSpectating[playerid]=true;
TogglePlayerSpectating(playerid,false);
SendClientMessage(playerid,ORANGE,"Baigėte prižiūrėjimą!");
SpectatingPlayer[playerid] = INVALID_PLAYER_ID;
return 1;
}
CMD:pzu(playerid,params[])
{
new id;
if(pInfo[playerid][AdminLevel] < 1 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,RED,"Tu turi būti administratorius kad galėtum naudoti љią komandą!");
if(SpectatingPlayer[playerid] != INVALID_PLAYER_ID)
{
set.WasSpectating[playerid]=true;
TogglePlayerSpectating(playerid,false);
SendClientMessage(playerid,ORANGE,"Baigėte priћiūrėjimą!");
SpectatingPlayer[playerid] = INVALID_PLAYER_ID;
SetPlayerPos(playerid,pos[0],pos[1],pos[2]);
return 1;
}
if(sscanf(params,"u",id)) return SendClientMessage(playerid,RED,"Naudojimas /pzu [ЋaidėjoID/DalisVardo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,RED,"Tokio ћaidėjo nėra!");
new Float:pos[3];
GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
TogglePlayerSpectating(playerid,true);
SpectatingPlayer[playerid] = id;
PlayerSpectatePlayer(playerid,id);
SendClientMessage(playerid,RED,"Pradėjote prieћiūrą, norėdami ją baigti raљykite /pzu");
return 1;
}