01.09.2014, 10:41
Fiz um textdraw pra o comando /spec para olhar a pessoa, antes era gametext aн troquei por textdraw sу que nгo aparece jб tentei de td
Code:
Nome da textdraw: EuOlhei (nao riam eu so retardado)
Code:
Код:
stock StartSpectate(playerid, specplayerid) { for (new x = 0; x < MAX_PLAYERS; x++){ if(IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING && PlayerInfo[x][SpecID] == playerid) { AdvanceSpectate(x); } } SetPlayerInterior(playerid,GetPlayerInterior(specplayerid)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(specplayerid)); TogglePlayerSpectating(playerid, 1); if(IsPlayerInAnyVehicle(specplayerid)) { PlayerSpectateVehicle(playerid, GetPlayerVehicleID(specplayerid)); PlayerInfo[playerid][SpecID] = specplayerid; PlayerInfo[playerid][SpecType] = ADMIN_SPEC_TYPE_VEHICLE; } else { PlayerSpectatePlayer(playerid, specplayerid); PlayerInfo[playerid][SpecID] = specplayerid; PlayerInfo[playerid][SpecType] = ADMIN_SPEC_TYPE_PLAYER; } new string[100], Float:hp, Float:ar; GetPlayerName(specplayerid,string,sizeof(string)); GetPlayerHealth(specplayerid, hp); GetPlayerArmour(specplayerid, ar); new pname; format(string,sizeof(string)," nome: %s ID: %d~n~ ~y~vida: %0.1f colete: %0.1f~n~ ~<~ Trocar lspec ~y~~>~", string,specplayerid,pname,hp,ar); TextDrawSetString(EuOlhei, string); TextDrawShowForPlayer(playerid, EuOlhei); //GameTextForPlayer(playerid,string,25000,3); return 1; } }